|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegistryChannel
interface to a class that implements a communication channel to the registry. Independently from the used transport technology, an implementation must guarantee that the order of responses match the order of the requests. The implementation must be thread-safe, especially it must allow that two different threads may send messages and wait for responses in parallel.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |