public abstract class Message
extends java.lang.Object
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
Address |
address()
Returns address from which this message was originally sent.
|
Message |
address(Address address) |
abstract void |
read(org.reveno.atp.core.api.channel.Buffer buffer)
Provides an ability to deserialize current message instance
data from the given buffer
|
abstract int |
type()
Unique message type in the system.
|
abstract void |
write(org.reveno.atp.core.api.channel.Buffer buffer)
Provides an ability to serialize current message instance
data down to buffer.
|
public abstract void write(org.reveno.atp.core.api.channel.Buffer buffer)
buffer - into which message will be serializedpublic abstract void read(org.reveno.atp.core.api.channel.Buffer buffer)
buffer - from which message will be readpublic abstract int type()
public Address address()
Copyright © 2015 Artem Dmitriev. All Rights Reserved.