public class DiscoveryProtocolSerializer extends 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(DataInputStream inputStream,
InetEndpoint localAddress,
InetEndpoint remoteAddress) |
void |
write(DiscoveryMessage message,
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(DataInputStream inputStream, InetEndpoint localAddress, InetEndpoint remoteAddress) throws Exception
read in interface MessageSerializer<DiscoveryMessage>Exceptionpublic void write(DiscoveryMessage message, DataOutputStream outputStream) throws Exception
write in interface MessageSerializer<DiscoveryMessage>ExceptionCopyright © 2013. All rights reserved