Package com.lmax.disruptor
Interface EventFactory<T>
- Type Parameters:
T- event implementation storing the data for sharing during exchange or parallel coordination of an event.
public interface EventFactory<T>
Called by the
RingBuffer to pre-populate all the events to fill the RingBuffer.-
Method Summary
Modifier and TypeMethodDescriptionImplementations should instantiate an event object, with all memory already allocated where possible.
-
Method Details
-
newInstance
T newInstance()Implementations should instantiate an event object, with all memory already allocated where possible.- Returns:
- T newly constructed event instance.
-