Class GroupJoinMessage
java.lang.Object
org.drasyl.node.plugin.groups.client.message.GroupsPluginMessage
org.drasyl.node.plugin.groups.client.message.GroupsClientMessage
org.drasyl.node.plugin.groups.client.message.GroupJoinMessage
This message is send by the groups client to the server to join a group.
This is an immutable object.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
abstract ProofOfWork
abstract boolean
isRenew()
static GroupJoinMessage
of
(io.netty.buffer.ByteBuf byteBuf) static GroupJoinMessage
of
(Group group, String credentials, ProofOfWork proofOfWork, boolean renew) void
writeTo
(io.netty.buffer.ByteBuf out) Writes this message to the bufferout
.Methods inherited from class org.drasyl.node.plugin.groups.client.message.GroupsPluginMessage
getGroup
-
Field Details
-
MIN_LENGTH
public static final int MIN_LENGTH- See Also:
-
-
Constructor Details
-
GroupJoinMessage
public GroupJoinMessage()
-
-
Method Details
-
of
public static GroupJoinMessage of(Group group, String credentials, ProofOfWork proofOfWork, boolean renew) -
of
-
isRenew
public abstract boolean isRenew() -
getCredentials
-
getProofOfWork
-
writeTo
public void writeTo(io.netty.buffer.ByteBuf out) Description copied from class:GroupsPluginMessage
Writes this message to the bufferout
.- Overrides:
writeTo
in classGroupsPluginMessage
- Parameters:
out
- writes this envelope to this buffer
-