Package org.openspaces.events.notify
Annotation Interface NotifyBatch
Enables batching of notifications. Requires setting
size() and time() which
control when the batched notifications will be sent to the listener.- Author:
- kimchy
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhen batching is turned on, should the batch of events be passed as anObject[]to the listener.intThe batch pending threshold controls the number of notifications that will be accumulated before they are sent.
-
Element Details
-
size
int sizeThe batch size controls the number of notifications that will be sent in each batch. -
time
int timeThe batch time controls the elapsed time until the batch buffer is cleared and sent. The time is in milliseconds.
-
-
-
pendingThreshold
int pendingThresholdThe batch pending threshold controls the number of notifications that will be accumulated before they are sent. If not set, size parameter will be used.- Default:
- -1
-
passArrayAsIs
boolean passArrayAsIsWhen batching is turned on, should the batch of events be passed as anObject[]to the listener. Default tofalsewhich means it will be passed one event at a time.- Default:
- false
-