public class DiscoveryProtocolSerializer extends java.lang.Object implements MessageSerializer<DiscoveryMessage>
| Modifier and Type | Field and Description |
|---|---|
static byte |
CHANNEL_AVAILABLE |
static byte |
CHANNEL_UNAVAILABLE |
static byte |
LOOKUP_REQUEST |
static byte |
PROTOCOL_VERSION |
| Constructor and Description |
|---|
DiscoveryProtocolSerializer() |
| Modifier and Type | Method and Description |
|---|---|
DiscoveryMessage |
read(java.io.DataInputStream inputStream,
InetEndpoint localAddress,
InetEndpoint remoteAddress) |
void |
write(DiscoveryMessage message,
java.io.DataOutputStream outputStream) |
public static final byte PROTOCOL_VERSION
public static final byte LOOKUP_REQUEST
public static final byte CHANNEL_AVAILABLE
public static final byte CHANNEL_UNAVAILABLE
public DiscoveryMessage read(java.io.DataInputStream inputStream, InetEndpoint localAddress, InetEndpoint remoteAddress) throws java.lang.Exception
read in interface MessageSerializer<DiscoveryMessage>java.lang.Exceptionpublic void write(DiscoveryMessage message, java.io.DataOutputStream outputStream) throws java.lang.Exception
write in interface MessageSerializer<DiscoveryMessage>java.lang.ExceptionCopyright © 2013. All rights reserved