Package com.lmax.disruptor
Interface LifecycleAware
-
- All Known Implementing Classes:
AggregateEventHandler
public interface LifecycleAwareImplement this interface in yourEventHandlerto be notified when a thread for theBatchEventProcessorstarts and shuts down.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonShutdown()Called once just before the thread is shutdown.voidonStart()Called once on thread start before first event is available.
-
-
-
Method Detail
-
onStart
void onStart()
Called once on thread start before first event is available.
-
onShutdown
void onShutdown()
Called once just before the thread is shutdown.
Sequence event processing will already have stopped before this method is called. No events will be processed after this message.
-
-