public interface RegistryChannel
Modifier and Type | Method and Description |
---|---|
void |
close()
close the channel.
|
boolean |
isClosed()
return whether the channel has been closed
|
byte[] |
receive()
wait for a response from the registry.
|
void |
send(byte[] data,
boolean isXml)
send the given message to the registry.
|
void send(byte[] data, boolean isXml) throws java.io.IOException
data
- the data representing the messageisXml
- true
if the message uses the
XML encoding, false
if the
message uses key-value pairs.java.io.IOException
- if the transmission failedbyte[] receive() throws java.io.IOException
java.io.IOException
- if the connection has been closed either
before or during the call.boolean isClosed()
true
if closedvoid close()
Copyright © 2005-2013 Knipp Medien und Kommunikation GmbH