public interface RequestDispatcher extends Versionable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dispatchRequest(java.lang.String input)
Dispatch an encoded request to the system and await some response.
|
int |
getPort()
Returns the port associated with the endpoint
|
void |
setConnectionTimeout(int timeInMilliseconds)
Sets the time to attempt to connect to a cluster.
|
void |
setReadTimeout(int timeInMilliseconds)
Sets the time to attempt to read data from a request to a cluster.
|
void |
setTimeoutToDefault()
Sets the time to attempt to connect to a cluster and the time
to attempt to read data from a request to a cluster to the default settings.
|
getVersion
java.lang.String dispatchRequest(java.lang.String input) throws java.io.IOException
input
- The input string to send to the remote server.java.io.IOException
- if anything went wrong on the connection side of things.void setConnectionTimeout(int timeInMilliseconds)
timeInMilliseconds
- an int
that specifies the timeout
value to be used in millisecondsjava.lang.IllegalArgumentException
- if the timeout parameter is negativevoid setReadTimeout(int timeInMilliseconds)
timeInMilliseconds
- an int
that specifies the timeout
value to be used in millisecondsjava.lang.IllegalArgumentException
- if the timeout parameter is negativevoid setTimeoutToDefault()
int getPort()