Class ClientResponse
- java.lang.Object
-
- org.apache.ignite.internal.processors.odbc.ClientListenerResponse
-
- org.apache.ignite.internal.processors.platform.client.ClientResponse
-
- All Implemented Interfaces:
ClientOutgoingMessage
- Direct Known Subclasses:
ClientAsyncResponse,ClientBinaryConfigurationGetResponse,ClientBinaryTypeGetResponse,ClientBooleanResponse,ClientByteResponse,ClientCacheGetConfigurationResponse,ClientCacheGetNamesResponse,ClientClusterGroupGetNodeIdsResponse,ClientClusterGroupGetNodesDetailsResponse,ClientClusterGroupGetNodesEndpointsResponse,ClientExecuteTaskResponse,ClientIntResponse,ClientLongResponse,ClientObjectResponse,ClientServiceDescriptorResponse,ClientServiceDescriptorsResponse,ClientServiceMappingsResponse,ClientStringResponse
public class ClientResponse extends ClientListenerResponse implements ClientOutgoingMessage
Thin client response.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.odbc.ClientListenerResponse
STATUS_FAILED, STATUS_SUCCESS
-
-
Constructor Summary
Constructors Constructor Description ClientResponse(long reqId)Constructor.ClientResponse(long reqId, int status, String err)Constructor.ClientResponse(long reqId, String err)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(ClientConnectionContext ctx, BinaryRawWriterEx writer)Encodes the response data.voidencode(ClientConnectionContext ctx, BinaryRawWriterEx writer, ClientAffinityTopologyVersion affinityVer)Encodes the response data.longrequestId()Gets the request id.
-
-
-
Constructor Detail
-
ClientResponse
public ClientResponse(long reqId)
Constructor.- Parameters:
reqId- Request id.
-
ClientResponse
public ClientResponse(long reqId, String err)Constructor.- Parameters:
reqId- Request id.err- Error message.
-
ClientResponse
public ClientResponse(long reqId, int status, String err)Constructor.- Parameters:
reqId- Request id.status- Status code.err- Error message.
-
-
Method Detail
-
encode
public void encode(ClientConnectionContext ctx, BinaryRawWriterEx writer, ClientAffinityTopologyVersion affinityVer)
Encodes the response data. Used when response result depends on the specific affinity version.- Parameters:
ctx- Connection context.writer- Writer.affinityVer- Affinity version.
-
encode
public void encode(ClientConnectionContext ctx, BinaryRawWriterEx writer)
Encodes the response data.- Specified by:
encodein interfaceClientOutgoingMessage- Parameters:
ctx- Connection context.writer- Writer.
-
requestId
public long requestId()
Gets the request id.- Returns:
- Request id.
-
-