Class RemoveMessageFlyweight

java.lang.Object
io.aeron.command.CorrelatedMessageFlyweight
io.aeron.command.RemoveMessageFlyweight
Direct Known Subclasses:
RemoveCounterFlyweight, RemovePublicationFlyweight, RemoveSubscriptionFlyweight

public abstract class RemoveMessageFlyweight extends CorrelatedMessageFlyweight
Control message for removing a Publication or Subscription.
   0                   1                   2                   3
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                          Client ID                            |
  |                                                               |
  +---------------------------------------------------------------+
  |                    Command Correlation ID                     |
  |                                                               |
  +---------------------------------------------------------------+
  |                       Registration ID                         |
  |                                                               |
  +---------------------------------------------------------------+
 
  • Constructor Details

    • RemoveMessageFlyweight

      public RemoveMessageFlyweight()
  • Method Details

    • wrap

      public RemoveMessageFlyweight wrap(MutableDirectBuffer buffer, int offset)
      Wrap the buffer at a given offset for updates.
      Overrides:
      wrap in class CorrelatedMessageFlyweight
      Parameters:
      buffer - to wrap.
      offset - at which the message begins.
      Returns:
      this for a fluent API.
    • registrationId

      public long registrationId()
      Get the registration id field.
      Returns:
      registration id field.
    • registrationId

      public RemoveMessageFlyweight registrationId(long registrationId)
      Set registration id field.
      Parameters:
      registrationId - field value.
      Returns:
      this for a fluent API.
    • length

      public static int length()
      Length of the message in bytes.
      Returns:
      length of the message in bytes.
    • validateLength

      public void validateLength(int msgTypeId, int length)
      Validate buffer length is long enough for message.
      Overrides:
      validateLength in class CorrelatedMessageFlyweight
      Parameters:
      msgTypeId - type of message.
      length - of message in bytes to validate.