T
- event implementation storing the data for sharing during exchange or parallel coordination of an event.public interface EventTranslator<T>
Implementations translate (write) data representations into events claimed from the RingBuffer
.
When publishing to the RingBuffer, provide an EventTranslator. The RingBuffer will select the next available event by sequence and provide it to the EventTranslator (which should update the event), before publishing the sequence update.
Modifier and Type | Method and Description |
---|---|
void |
translateTo(T event,
long sequence)
Translate a data representation into fields set in given event
|
void translateTo(T event, long sequence)
event
- into which the data should be translated.sequence
- that is assigned to event.Copyright © 2011 - 2021 LMAX Ltd. All Rights Reserved.