public interface AsyncCoordinator<E extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
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 |
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()
IllegalStateExceptionvoid setOperationsFilter(ItemsFilter<E> filter)
long getQueueSize()
void destroy()
Copyright © 2003–2024 Terracotta, Inc.. All rights reserved.