Class TradeFlyweight

java.lang.Object
express.mvp.myra.codec.examples.generated.orderbook.TradeFlyweight
All Implemented Interfaces:
express.mvp.roray.ffm.utils.memory.FlyweightAccessor

public final class TradeFlyweight extends Object implements express.mvp.roray.ffm.utils.memory.FlyweightAccessor
Auto-generated, zero-copy flyweight for the Trade message. Provides direct access to binary data without deserialization overhead. Thread-safe for read operations when properly synchronized.
See Also:
  • FlyweightAccessor
  • Field Details

  • Constructor Details

    • TradeFlyweight

      public TradeFlyweight()
  • Method Details

    • wrap

      public void wrap(MemorySegment segment, long offset)
      Specified by:
      wrap in interface express.mvp.roray.ffm.utils.memory.FlyweightAccessor
    • segment

      public MemorySegment segment()
      Specified by:
      segment in interface express.mvp.roray.ffm.utils.memory.FlyweightAccessor
    • byteSize

      public int byteSize()
      Specified by:
      byteSize in interface express.mvp.roray.ffm.utils.memory.FlyweightAccessor
    • isWrapped

      public boolean isWrapped()
      Specified by:
      isWrapped in interface express.mvp.roray.ffm.utils.memory.FlyweightAccessor
    • validate

      public void validate()
      Specified by:
      validate in interface express.mvp.roray.ffm.utils.memory.FlyweightAccessor
    • getPriceNanos

      public long getPriceNanos()
    • setPriceNanos

      public void setPriceNanos(long value)
    • getSize

      public int getSize()
    • setSize

      public void setSize(int value)
    • getAggressor

      public express.mvp.roray.ffm.utils.memory.Utf8View getAggressor()
    • hasAggressor

      public boolean hasAggressor()
    • writeTo

      public void writeTo(express.mvp.roray.ffm.utils.memory.BinaryWriter writer)
      Specified by:
      writeTo in interface express.mvp.roray.ffm.utils.memory.FlyweightAccessor