Integratec API Platform
|
This class provides an interface for sending requests and receiving replies. More...
Public Member Functions | |
OPClientConnection () | |
Initializes the instance without opening a client connection. | |
OPClientConnection (String ip, int port) throws OPException | |
Initializes the instance and opens a client connection with a null callback argument. More... | |
OPClientConnection (String ip, int port, OPStatusCallback callback) throws OPException | |
Initializes the instance and opens a client connection. More... | |
boolean | isOpen () |
Indicates whether or not a client connection is open. More... | |
void | open (String ip, int port) throws OPException |
Opens and registers a client connection to a master. More... | |
void | open (String ip, int port, OPStatusCallback callback) throws OPException |
Opens and registers a client connection to a master. More... | |
void | close () |
Closes the client connection. More... | |
String | sendRequest (String serviceId, String request) throws OPException |
Sends an asynchronous request. More... | |
String | receiveReply (String requestId, int timeoutMs) throws OPException |
Receives a reply to an asynchronous request. More... | |
String | deleteRequest (String requestId) throws OPException |
Deletes the record of a request. More... | |
String | sendRecvDelete (String serviceId, String request, int timeoutMs) throws OPException |
Sends a request and waits for the reply. More... | |
String | getBrokerId () |
Gets the identity of the broker connected to. More... | |
This class provides an interface for sending requests and receiving replies.