Class ClientAsyncResponse
- java.lang.Object
-
- org.apache.ignite.internal.processors.odbc.ClientListenerResponse
-
- org.apache.ignite.internal.processors.platform.client.ClientResponse
-
- org.apache.ignite.internal.processors.odbc.ClientAsyncResponse
-
- All Implemented Interfaces:
ClientListenerAsyncResponse,ClientOutgoingMessage
public class ClientAsyncResponse extends ClientResponse implements ClientListenerAsyncResponse
Client async response.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.odbc.ClientListenerResponse
STATUS_FAILED, STATUS_SUCCESS
-
-
Constructor Summary
Constructors Constructor Description ClientAsyncResponse(long reqId, IgniteInternalFuture<? extends ClientListenerResponse> fut)Constructs async response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringerror()protected voiderror(String err)IgniteInternalFuture<? extends ClientListenerResponse>future()Future for response.voidonSent()Callback for response sent event.intstatus()protected voidstatus(int status)-
Methods inherited from class org.apache.ignite.internal.processors.platform.client.ClientResponse
encode, encode, requestId
-
-
-
-
Constructor Detail
-
ClientAsyncResponse
public ClientAsyncResponse(long reqId, IgniteInternalFuture<? extends ClientListenerResponse> fut)Constructs async response.
-
-
Method Detail
-
future
public IgniteInternalFuture<? extends ClientListenerResponse> future()
Future for response.- Specified by:
futurein interfaceClientListenerAsyncResponse
-
status
public int status()
- Overrides:
statusin classClientListenerResponse- Returns:
- Success flag.
-
status
protected void status(int status)
- Overrides:
statusin classClientListenerResponse- Parameters:
status- Status.
-
error
public String error()
- Overrides:
errorin classClientListenerResponse- Returns:
- Error.
-
error
protected void error(String err)
- Overrides:
errorin classClientListenerResponse- Parameters:
err- Error message.
-
onSent
public void onSent()
Callback for response sent event.- Overrides:
onSentin classClientListenerResponse
-
-