|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamTransport
Method Summary | |
---|---|
void |
connect(StreamListener listener)
Connect to stream. |
void |
disconnect(StreamListener listener)
Disconnect to stream. |
void |
dispose()
Dispose the transport. |
boolean |
isConnect()
Check if stream is connected. |
void |
removeMessageStreamListener(StreamListener listener)
Remove message stream listener. |
void |
setMessageStreamListener(StreamListener listener)
Sets message stream listener. |
Method Detail |
---|
void setMessageStreamListener(StreamListener listener)
listener
- the listenervoid removeMessageStreamListener(StreamListener listener)
listener
- the listenervoid connect(StreamListener listener) throws java.io.IOException
listener
- the listener
java.io.IOException
- if error occurredboolean isConnect()
void disconnect(StreamListener listener) throws java.io.IOException
listener
- the listener
java.io.IOException
- if error occurredvoid dispose() throws java.io.IOException
This methods disconnect from stream and cleans all subscribed listeners.
java.io.IOException
- if error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |