Javadoc
Support for batch processing of events. In some situations
you may want to delay processing of received events until the last
known one is delivered. For example if there is a lot of operations
done inside
FileUtil#runAtomicAction(java.lang.Runnable)action, there can be valid reason to do the processing only after
all of them are delivered. In such situation attach your
Runnableto provided event. Such
Runnable is then guaranteed to be called once.
Either immediately (if there is no batch delivery in progress)
or some time later (if there is a batch delivery). You can attach
single runnable multiple times, even to different events in the
same batch section and its
Runnable#run() method will still be
called just once.
Object#equals(java.lang.Object) is used
to check equality of two
Runnables.