public interface IntentBatchService
| Modifier and Type | Method and Description |
|---|---|
void |
addIntentOperations(IntentOperations operations)
Submits a batch of intent operations.
|
void |
addListener(IntentBatchListener listener)
Adds the specified listener for intent batch leadership events.
|
Set<IntentOperations> |
getPendingOperations()
Returns the set of intent batches that are pending.
|
boolean |
isLocalLeader(ApplicationId applicationId)
Return true if this instance is the local leader for batch
processing a given application id.
|
void |
removeIntentOperations(IntentOperations operations)
Removes the specified batch of intent operations after completion.
|
void |
removeListener(IntentBatchListener listener)
Removes the specified listener for intent batch leadership events.
|
void |
setDelegate(IntentBatchDelegate delegate)
Sets the batch service delegate.
|
void |
unsetDelegate(IntentBatchDelegate delegate)
Unsets the batch service delegate.
|
void addIntentOperations(IntentOperations operations)
operations - batch of operationsvoid removeIntentOperations(IntentOperations operations)
operations - batch of operationsSet<IntentOperations> getPendingOperations()
boolean isLocalLeader(ApplicationId applicationId)
applicationId - an application idvoid setDelegate(IntentBatchDelegate delegate)
delegate - delegate to applyvoid unsetDelegate(IntentBatchDelegate delegate)
delegate - delegate to unsetvoid addListener(IntentBatchListener listener)
listener - listener to be addedvoid removeListener(IntentBatchListener listener)
listener - listener to be removedCopyright © 2015. All rights reserved.