public class FinishedHandshakeAdminMessage extends AbstractAdminMessage
CLASSIFIER_ADD_SUBSCRIPTION, CLASSIFIER_BOW_DOWN_TO_NEW_KING, CLASSIFIER_CENSUS_MESSAGE, CLASSIFIER_CLOSE_SERVER_CONNECTION, CLASSIFIER_DISCOVERED_DEVICE, CLASSIFIER_FINISHED_HANDSHAKE, CLASSIFIER_KEEP_ALIVE_MESSAGE, CLASSIFIER_NEW_PRINCE_MESSAGE, CLASSIFIER_PRINCE_ACK, CLASSIFIER_PRINCE_FOUND_A_KING_MESSAGE, CLASSIFIER_REMOVE_SUBSCRIPTION, CLASSIFIER_SERVER_CONNECTION_AVAILABLE, CLASSIFIER_SERVER_CONNECTION_DOWN, CLASSIFIER_SERVER_CONNECTION_RELAY_PAYLOAD, CLASSIFIER_STRING_MESSAGE, gson, HEADER_LENGTH
Constructor and Description |
---|
FinishedHandshakeAdminMessage() |
FinishedHandshakeAdminMessage(BlaubotMessage rawMessage) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
boolean |
getIsAck() |
java.lang.String |
getMessageUuid() |
int |
hashCode() |
protected byte[] |
payloadToBytes()
Gets this message's byte representation (NOT including the classifier)
|
void |
setIsAck(boolean isAck) |
protected void |
setUpFromBytes(java.nio.ByteBuffer messagePayloadAsBytes)
Should set the message's attributes based on the message's payload.
|
BlaubotMessage |
toBlaubotMessage()
Creates a
BlaubotMessage representing this AbstractAdminMessage |
java.lang.String |
toString() |
classifierAndPayloadBytes, getClassifier, setClassifier
public FinishedHandshakeAdminMessage()
public FinishedHandshakeAdminMessage(BlaubotMessage rawMessage)
public BlaubotMessage toBlaubotMessage()
AbstractAdminMessage
BlaubotMessage
representing this AbstractAdminMessage
toBlaubotMessage
in class AbstractAdminMessage
BlaubotMessage
representationprotected byte[] payloadToBytes()
AbstractAdminMessage
payloadToBytes
in class AbstractAdminMessage
protected void setUpFromBytes(java.nio.ByteBuffer messagePayloadAsBytes)
AbstractAdminMessage
ByteBuffer
contains the classifier bytes but it's current
index will be set beyond that.setUpFromBytes
in class AbstractAdminMessage
messagePayloadAsBytes
- a ByteBuffer wrapped around the message's payload with it's current index set beyond the classifier bytespublic boolean getIsAck()
public void setIsAck(boolean isAck)
public java.lang.String getMessageUuid()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class AbstractAdminMessage
public int hashCode()
hashCode
in class AbstractAdminMessage