Package io.aeron.command
Class RemovePublicationFlyweight
java.lang.Object
io.aeron.command.CorrelatedMessageFlyweight
io.aeron.command.RemoveMessageFlyweight
io.aeron.command.RemovePublicationFlyweight
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 | | | +---------------------------------------------------------------+
-
Field Summary
Fields inherited from class io.aeron.command.CorrelatedMessageFlyweight
LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanflagsFieldIsValid(int messageLength) Whether or not the message contains the flags field.static intlength()Length of the message in bytes.booleanrevoke()Get the value of the revoke field.revoke(boolean revoke) Set the value of the revoke field.booleanrevoke(int messageLength) Whether or not the message contains the set revoke flag.wrap(MutableDirectBuffer buffer, int offset) Wrap the buffer at a given offset for updates.Methods inherited from class io.aeron.command.RemoveMessageFlyweight
registrationId, registrationId, validateLengthMethods inherited from class io.aeron.command.CorrelatedMessageFlyweight
clientId, clientId, correlationId, correlationId
-
Constructor Details
-
RemovePublicationFlyweight
public RemovePublicationFlyweight()
-
-
Method Details
-
wrap
Wrap the buffer at a given offset for updates.- Overrides:
wrapin classRemoveMessageFlyweight- 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
Set the value of the revoke field.- Parameters:
revoke- field value.- Returns:
- this for a fluent API.
-