|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface SocketClient
Interface that defines a high level abstraction for developing generic client side socket interactions.
Implementations of this interface will provide functionality to interact with client sockets.
| Method Summary | |
|---|---|
void |
destroy()
Destroy this client. |
void |
init(SocketConnectionManager connMngr,
SocketProtocolHandler handler)
Initialise this client with the provided infrastructure components to facilitate socket communications. |
void |
publish(java.lang.String payload)
This method facilitates 1-way fire and forget client socket communication. |
java.lang.String |
request(java.lang.String payload)
This method facilitates 2-way synchronous client socket communication. |
| Method Detail |
|---|
void init(SocketConnectionManager connMngr,
SocketProtocolHandler handler)
connMngr - SocketConnectionManager responsible for managing client
socket connections.handler - SocketProtocolHandler responsible for sending and
receiving data over a client socket connection.
java.lang.String request(java.lang.String payload)
throws SocketClientException
payload - Sring containing the request data.
SocketClientException - when an error occurs during socket
communication.
void publish(java.lang.String payload)
throws SocketClientException
payload - String containing the data that must be plublished.
SocketClientException - when an error occurs during socket
communication.void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||