|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connect
Method Summary | ||
---|---|---|
void |
close()
Close to not allow for anymore connections nor disconnections. |
|
void |
connect()
Connect the server to it's network. |
|
void |
disconnect()
Disconnect the server from it's network. |
|
ConnectSettings |
getSettings()
|
|
boolean |
isClosed()
|
|
boolean |
isConnected()
|
|
void |
registerMessageEventListener(MessageEventListener messageEventListener)
Register a MessageEventListener to receive an events when a message has been received by this specific session. |
|
void |
registerRedirectEventListener(RedirectEventListener redirectEventListener)
Register a RedirectEventListener to receive an events when a redirect is to be handled by this specific session, only used when the session's role is that of a proxy. |
|
void |
registerServerEventListener(ServerEventListener serverEventListener)
Register a ServerEventListener to receive an events when a server has been added or removed from the network, only used when the session's role is that of a proxy. |
|
|
request(Request<T> request)
Pass a request to be completed and given a result by the network. |
|
void |
unregisterMessageEventListener(MessageEventListener messageEventListener)
Unregister a MessageEventListener to exclude from receiving events when a message has been received by this specific session. |
|
void |
unregisterRedirectEventListener(RedirectEventListener redirectEventListener)
Unregister a RedirectEventListener to exclude from receiving events when a redirect is to be handled by this specific session. |
|
void |
unregisterServerEventListener(ServerEventListener serverEventListener)
Unregister a ServerEventListener to exclude from receiving events when a server has been added or removed from the network. |
Method Detail |
---|
void connect() throws java.lang.Throwable
java.lang.Throwable
- showing the connection failedvoid disconnect()
void close()
<T extends Result> FutureResult<T> request(Request<T> request) throws RequestException
request
-
RequestException
- if the request failedvoid registerMessageEventListener(MessageEventListener messageEventListener)
messageEventListener
- void unregisterMessageEventListener(MessageEventListener messageEventListener)
messageEventListener
- void registerRedirectEventListener(RedirectEventListener redirectEventListener)
redirectEventListener
- void unregisterRedirectEventListener(RedirectEventListener redirectEventListener)
redirectEventListener
- void registerServerEventListener(ServerEventListener serverEventListener)
serverEventListener
- void unregisterServerEventListener(ServerEventListener serverEventListener)
serverEventListener
- boolean isConnected()
boolean isClosed()
ConnectSettings getSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |