com.trendmicro.grid.acl.l0
Interface BatchCollection.Invoker<E,R>

Type Parameters:
E - The type of the input collection elements.
R - The return type of the invocation.
Enclosing class:
BatchCollection<E>

public static interface BatchCollection.Invoker<E,R>

Defines an invoker that may be used to handle chunks of batch collections.


Method Summary
 R invoke(BatchCollection<E> chunk)
          Is called for every batch chunk that is handled within the method BatchCollection.invokeOnChunksOf(java.util.Collection, com.trendmicro.grid.acl.l0.BatchCollection.Invoker)
 

Method Detail

invoke

R invoke(BatchCollection<E> chunk)
         throws WebException
Is called for every batch chunk that is handled within the method BatchCollection.invokeOnChunksOf(java.util.Collection, com.trendmicro.grid.acl.l0.BatchCollection.Invoker)

Parameters:
chunk - A chunk of elements that fit into one batch request.
Returns:
The result of the invocation on the given chunk.
Throws:
WebException - May be thrown when calling a service.