public final class GridMessageCollection<M extends Message> extends Object implements Message
| Constructor and Description |
|---|
GridMessageCollection() |
GridMessageCollection(Collection<M> msgs) |
| Modifier and Type | Method and Description |
|---|---|
byte |
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) |
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 boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0.final Release Date : December 29 2015