接口 EventTranslator<T>

类型参数:
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.

  • 方法概要

    修饰符和类型
    方法
    说明
    void
    translateTo(T event, long sequence)
    Translate a data representation into fields set in given event
  • 方法详细资料

    • translateTo

      void translateTo(T event, long sequence)
      Translate a data representation into fields set in given event
      参数:
      event - into which the data should be translated.
      sequence - that is assigned to event.