Class ClientCacheKeyRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.client.ClientRequest
-
- org.apache.ignite.internal.processors.platform.client.cache.ClientCacheRequest
-
- org.apache.ignite.internal.processors.platform.client.cache.ClientCacheKeyRequest
-
- All Implemented Interfaces:
ClientListenerRequest,ClientTxAwareRequest
- Direct Known Subclasses:
ClientCacheClearKeyRequest,ClientCacheContainsKeyRequest,ClientCacheGetAndRemoveRequest,ClientCacheGetRequest,ClientCacheInvokeRequest,ClientCacheKeyValueRequest,ClientCacheLocalPeekRequest,ClientCacheRemoveKeyRequest
public abstract class ClientCacheKeyRequest extends ClientCacheRequest implements ClientTxAwareRequest
Cache request involving key.
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.processors.odbc.ClientListenerRequest
HANDSHAKE
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static <T> IgniteInternalFuture<ClientResponse>chainFuture(IgniteFuture<T> fut, IgniteClosure<T,ClientResponse> clo)Chain cache operation future to return response when operation is completed.booleanisAsync(ClientConnectionContext ctx)booleanisTransactional()Gets a value indicating whether request was made under transaction.Objectkey()Gets the key.ClientResponseprocess(ClientConnectionContext ctx)Processes the request.protected abstract ClientResponseprocess0(ClientConnectionContext ctx)IgniteInternalFuture<ClientResponse>processAsync(ClientConnectionContext ctx)Processes the request asynchronously.protected IgniteInternalFuture<ClientResponse>processAsync0(ClientConnectionContext ctx)inttxId()Gets transaction ID.-
Methods inherited from class org.apache.ignite.internal.processors.platform.client.cache.ClientCacheRequest
cache, cacheDescriptor, cacheDescriptor, cacheId, cachex, isKeepBinary, rawCache
-
Methods inherited from class org.apache.ignite.internal.processors.platform.client.ClientRequest
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.platform.client.tx.ClientTxAwareRequest
isTransactional, txId
-
-
-
-
Method Detail
-
process
public final ClientResponse process(ClientConnectionContext ctx)
Processes the request.- Overrides:
processin classClientRequest- Returns:
- Response.
-
processAsync
public final IgniteInternalFuture<ClientResponse> processAsync(ClientConnectionContext ctx)
Processes the request asynchronously.- Overrides:
processAsyncin classClientRequest- Returns:
- Future for response.
-
isAsync
public boolean isAsync(ClientConnectionContext ctx)
- Overrides:
isAsyncin classClientRequest- Parameters:
ctx- Client connection context.- Returns:
Trueif request should be processed asynchronously.
-
process0
protected abstract ClientResponse process0(ClientConnectionContext ctx)
-
processAsync0
protected IgniteInternalFuture<ClientResponse> processAsync0(ClientConnectionContext ctx)
-
key
public Object key()
Gets the key.- Returns:
- Key.
-
txId
public int txId()
Gets transaction ID.
-
isTransactional
public boolean isTransactional()
Gets a value indicating whether request was made under transaction.- Overrides:
isTransactionalin classClientCacheRequest- Returns:
- Flag value.
-
chainFuture
protected static <T> IgniteInternalFuture<ClientResponse> chainFuture(IgniteFuture<T> fut, IgniteClosure<T,ClientResponse> clo)
Chain cache operation future to return response when operation is completed.
-
-