|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncCoordinator<E extends Serializable>
| Method Summary | |
|---|---|
void |
add(E item)
|
void |
destroy()
Destroy all clustered state associated with the given async coordinator. |
long |
getQueueSize()
|
void |
setOperationsFilter(ItemsFilter<E> filter)
Sets a filter to filter out the items. |
void |
start(ItemProcessor<E> processor,
int processingConcurrency,
ItemScatterPolicy<? super E> policy)
|
void |
stop()
Stops and waits for the current processing to finish. Calling this multiple times will result in IllegalStateException |
| Method Detail |
|---|
void start(ItemProcessor<E> processor,
int processingConcurrency,
ItemScatterPolicy<? super E> policy)
IllegalArgumentException - if processingConcurrency is less than 1 OR processor is nullvoid add(E item)
item - null item are ignored.void stop()
IllegalStateException
void setOperationsFilter(ItemsFilter<E> filter)
long getQueueSize()
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||