Class RemovePublicationFlyweight


public class RemovePublicationFlyweight extends RemoveMessageFlyweight
Control message for removing a Publication.
   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                         |
  |                                                               |
  +---------------------------------------------------------------+
  |                           Flags                               |
  |                                                               |
  +---------------------------------------------------------------+
 
  • Constructor Details

    • RemovePublicationFlyweight

      public RemovePublicationFlyweight()
  • Method Details

    • wrap

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

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

      public boolean flagsFieldIsValid(int messageLength)
      Whether or not the message contains the flags field.
      Parameters:
      messageLength - the length of the message.
      Returns:
      true if the flags field can be read.
    • revoke

      public boolean revoke()
      Get the value of the revoke field.
      Returns:
      revoked.
    • revoke

      public boolean revoke(int messageLength)
      Whether or not the message contains the set revoke flag.
      Parameters:
      messageLength - the length of the message.
      Returns:
      true if the flags field is present AND the revoked flag is set.
    • revoke

      public RemovePublicationFlyweight revoke(boolean revoke)
      Set the value of the revoke field.
      Parameters:
      revoke - field value.
      Returns:
      this for a fluent API.