public final class GridMessageCollection<M extends Message> extends Object implements Message
DIRECT_TYPE_SIZE
Constructor and Description |
---|
GridMessageCollection() |
GridMessageCollection(Collection<M> msgs) |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
boolean |
equals(Object o) |
byte |
fieldsCount()
Gets fields count.
|
int |
hashCode() |
Collection<M> |
messages() |
void |
messages(Collection<M> msgs) |
static <X extends Message> |
of(X... msgs) |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public GridMessageCollection()
public GridMessageCollection(Collection<M> msgs)
msgs
- Collection of messages.public static <X extends Message> GridMessageCollection<X> of(X... msgs)
msgs
- Messages.public Collection<M> messages()
public void messages(Collection<M> msgs)
msgs
- Messages.public void onAckReceived()
onAckReceived
in interface Message
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017