Package com.lmax.disruptor
Interface WorkHandler<T>
- Type Parameters:
T
- event implementation storing the data for sharing during exchange or parallel coordination of an event.
public interface WorkHandler<T>
Callback interface to be implemented for processing units of work as they become available in the
RingBuffer
.- See Also:
-
Method Summary
-
Method Details
-
onEvent
Callback to indicate a unit of work needs to be processed.- Parameters:
event
- published to theRingBuffer
- Throws:
Exception
- if theWorkHandler
would like the exception handled further up the chain.
-