GigaSpaces - Open Spaces

org.openspaces.events.notify
Annotation Type NotifyBatch


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @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
 int size
          The batch size controls the number of notifications that will be batched before they are sent.
 int time
          The batch time controls the elapsed time until the batch buffer is cleared and sent.
 

Element Detail

size

public abstract int size
The batch size controls the number of notifications that will be batched before they are sent.


time

public abstract int time
The batch time controls the elapsed time until the batch buffer is cleared and sent. The time is in milliseconds.


GigaSpaces - Open Spaces

Copyright © GigaSpaces.