package Ġcom . mal in sk iy . mar athon Ċ Ċ import Ġcom . mal in sk iy . mar athon . execution . strategy . Batch ing Strategy Ċ import Ġcom . mal in sk iy . mar athon . execution . strategy . impl . batch ing . Fixed Size Batch ing Strategy Ċ import Ġcom . mal in sk iy . mar athon . execution . strategy . impl . batch ing . Is olate Batch ing Strategy Ċ import Ġgro ovy . lang . Closure Ċ Ċ class ĠBatch ing Strategy Configuration Ġ{ ĊĠĠĠ Ġvar Ġfixed Size : ĠFixed Size Batch ing Strategy Configuration ? Ġ= Ġnull ĊĊĠĠĠ Ġfun Ġfixed Size ( block : ĠFixed Size Batch ing Strategy Configuration . () Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġfixed Size Ġ= ĠFixed Size Batch ing Strategy Configuration (). also ( block ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġfixed Size ( closure : ĠClosure <* >) Ġ{ ĊĠĠĠĠĠĠĠ Ġfixed Size Ġ= ĠFixed Size Batch ing Strategy Configuration () ĊĠĠĠĠĠĠĠ Ġclosure . delegate Ġ= Ġfixed Size ĊĠĠĠĠĠĠĠ Ġclosure . call () ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠFixed Size Batch ing Strategy Configuration Ġ{ ĊĠĠĠ Ġvar Ġsize Ġ= Ġ 1 Ċ } Ċ Ċ fun ĠBatch ing Strategy Configuration . to Strategy (): ĠBatch ing Strategy Ġ= Ġfixed Size ?. let Ġ{ ĊĠĠĠ ĠFixed Size Batch ing Strategy ( it . size ) Ċ } Ġ?: ĠI sol ate Batch ing Strategy () Ċ