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

java.lang.Objecttoolbox.socket.SocketClientImpl
public class SocketClientImpl
The default implementation of the SocketClient interface.
| Constructor Summary | |
|---|---|
SocketClientImpl()
Default constructor. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketClientImpl()
| Method Detail |
|---|
public void init(SocketConnectionManager connMngr,
SocketProtocolHandler handler)
init in interface SocketClientconnMngr - SocketConnectionManager responsible for managing client
socket connections.handler - SocketProtocolHandler responsible for sending and
receiving data over a client socket connection.
public java.lang.String request(java.lang.String payload)
throws SocketClientException
request in interface SocketClientpayload - Sring containing the request data.
SocketClientException - when an error occurs during socket
communication.
public void publish(java.lang.String payload)
throws SocketClientException
publish in interface SocketClientpayload - String containing the data that must be plublished.
SocketClientException - when an error occurs during socket
communication.public void destroy()
destroy in interface SocketClient
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||