public static class ClaraRequests.ServiceExecuteRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<EngineDataType> |
dataTypes |
Modifier and Type | Method and Description |
---|---|
void |
run()
Sends the request.
|
T |
syncRun(long wait,
java.util.concurrent.TimeUnit unit)
Sends the request and wait for a response.
|
D |
withDataTypes(EngineDataType... dataTypes)
Overwrites the data types used for serializing the data to the service,
and deserializing its response if needed.
|
D |
withDataTypes(java.util.Set<EngineDataType> dataTypes)
Overwrites the data types used for serializing the data to the service,
and deserializing its response if needed.
|
protected java.util.Set<EngineDataType> dataTypes
public D withDataTypes(java.util.Set<EngineDataType> dataTypes)
dataTypes
- the custom data-type of the configuration datapublic D withDataTypes(EngineDataType... dataTypes)
dataTypes
- the custom data-type of the configuration datapublic void run() throws ClaraException
ClaraException
- if the request could not be sentpublic T syncRun(long wait, java.util.concurrent.TimeUnit unit) throws ClaraException, java.util.concurrent.TimeoutException
wait
- the amount of time units to wait for a responseunit
- the unit of timeClaraException
- if the request could not be sent or receivedjava.util.concurrent.TimeoutException
- if the response is not received