Class ClientTxEndRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.client.ClientRequest
-
- org.apache.ignite.internal.processors.platform.client.tx.ClientTxEndRequest
-
- All Implemented Interfaces:
ClientListenerRequest,ClientTxSupport
public class ClientTxEndRequest extends ClientRequest implements ClientTxSupport
End the transaction request.
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.processors.odbc.ClientListenerRequest
HANDSHAKE
-
-
Constructor Summary
Constructors Constructor Description ClientTxEndRequest(BinaryRawReader reader)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeExceptionendTxException(IgniteCheckedException cause)booleanisAsync(ClientConnectionContext ctx)IgniteInternalFuture<ClientResponse>processAsync(ClientConnectionContext ctx)Processes the request asynchronously.RuntimeExceptiontransactionNotFoundException()-
Methods inherited from class org.apache.ignite.internal.processors.platform.client.ClientRequest
process, requestId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.odbc.ClientListenerRequest
beforeStartupRequest
-
Methods inherited from interface org.apache.ignite.internal.processors.odbc.ClientTxSupport
endTxAsync, startClientTransaction, startTxException
-
-
-
-
Constructor Detail
-
ClientTxEndRequest
public ClientTxEndRequest(BinaryRawReader reader)
Constructor.- Parameters:
reader- Reader.
-
-
Method Detail
-
isAsync
public boolean isAsync(ClientConnectionContext ctx)
- Overrides:
isAsyncin classClientRequest- Parameters:
ctx- Client connection context.- Returns:
Trueif request should be processed asynchronously.
-
processAsync
public IgniteInternalFuture<ClientResponse> processAsync(ClientConnectionContext ctx)
Processes the request asynchronously.- Overrides:
processAsyncin classClientRequest- Returns:
- Future for response.
-
transactionNotFoundException
public RuntimeException transactionNotFoundException()
- Specified by:
transactionNotFoundExceptionin interfaceClientTxSupport- Returns:
- Protocol specific transaction not found exception.
-
endTxException
public RuntimeException endTxException(IgniteCheckedException cause)
- Specified by:
endTxExceptionin interfaceClientTxSupport- Parameters:
cause- Exception cause.- Returns:
- Protocol specific end transaction exception.
-
-