public interface RequestInteraction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
long |
asyncRequest(java.util.Properties overrideProperties,
java.lang.Object data,
ConnectorCallback callback)
Send a request message asynchronously using the provided configuration properties which may augment or
override the properties set on the connector.
|
void |
initialise(RequestConnector connector)
Initialise the interaction by passing in the owning connector
|
java.lang.Object |
request(java.util.Properties overrideProperties,
java.lang.Object data)
Send a request message using the provided configuration properties which may augment or override the
properties set on the connector.
|
void |
terminate()
Called to allow the interaction to close any resources it may have created.
|
static final java.lang.String COPYRIGHT
void initialise(RequestConnector connector) throws ConnectorException
connector
- the owning connectorConnectorException
java.lang.Object request(java.util.Properties overrideProperties, java.lang.Object data) throws ConnectorException
overrideProperties
- the properties used to configure the sending operationdata
- the data to sendConnectorException
long asyncRequest(java.util.Properties overrideProperties, java.lang.Object data, ConnectorCallback callback) throws ConnectorException
overrideProperties
- the properties used to configure the sending operationdata
- the data to sendConnectorException
void terminate() throws ConnectorException
ConnectorException