com.hazelcast.client.impl.protocol.task.cache
Class AbstractCacheMessageTask<P>

java.lang.Object
  extended by com.hazelcast.client.impl.protocol.task.AbstractMessageTask<P>
      extended by com.hazelcast.client.impl.protocol.task.AbstractPartitionMessageTask<P>
          extended by com.hazelcast.client.impl.protocol.task.cache.AbstractCacheMessageTask<P>
All Implemented Interfaces:
SecureRequest, MessageTask, ExecutionCallback, PartitionSpecificRunnable, Runnable
Direct Known Subclasses:
CacheContainsKeyMessageTask, CacheEntryProcessorMessageTask, CacheGetAndRemoveMessageTask, CacheGetAndReplaceMessageTask, CacheGetConfigMessageTask, CacheGetMessageTask, CacheIterateMessageTask, CachePutIfAbsentMessageTask, CachePutMessageTask, CacheRemoveMessageTask, CacheReplaceMessageTask

public abstract class AbstractCacheMessageTask<P>
extends AbstractPartitionMessageTask<P>

Abstract Cache request to handle InMemoryFormat which needed for operation provider


Field Summary
 
Fields inherited from class com.hazelcast.client.impl.protocol.task.AbstractMessageTask
clientEngine, clientMessage, connection, endpoint, endpointManager, logger, nodeEngine, parameters, serializationService
 
Constructor Summary
protected AbstractCacheMessageTask(ClientMessage clientMessage, Node node, Connection connection)
           
 
Method Summary
 String getMethodName()
          Used for SecurityInterceptor Method name which called via a distributedObject for map.put, methodName will be 'put' For requests which do not produced via a distributedObject should return null, for example internal client.
protected  CacheOperationProvider getOperationProvider(String name)
           
 Object[] getParameters()
          Used for SecurityInterceptor Parameters passed to the method by a distributedObject for map.put(key, value) parameters should be 'key' and 'value' parameters can be in binary or object form, underlying implementation will de-serialize lazily
 Permission getRequiredPermission()
           
 String getServiceName()
           
 
Methods inherited from class com.hazelcast.client.impl.protocol.task.AbstractPartitionMessageTask
afterResponse, beforeProcess, beforeResponse, encodeResponse, onFailure, onResponse, prepareOperation, processMessage
 
Methods inherited from class com.hazelcast.client.impl.protocol.task.AbstractMessageTask
decodeClientMessage, getDistributedObjectName, getDistributedObjectType, getEndpoint, getPartitionId, getService, run, sendClientMessage, sendClientMessage, sendClientMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCacheMessageTask

protected AbstractCacheMessageTask(ClientMessage clientMessage,
                                   Node node,
                                   Connection connection)
Method Detail

getOperationProvider

protected CacheOperationProvider getOperationProvider(String name)

getServiceName

public String getServiceName()
Specified by:
getServiceName in class AbstractMessageTask<P>

getMethodName

public String getMethodName()
Description copied from interface: SecureRequest
Used for SecurityInterceptor Method name which called via a distributedObject for map.put, methodName will be 'put' For requests which do not produced via a distributedObject should return null, for example internal client.

Specified by:
getMethodName in interface SecureRequest
Specified by:
getMethodName in class AbstractMessageTask<P>
Returns:

getParameters

public Object[] getParameters()
Description copied from interface: SecureRequest
Used for SecurityInterceptor Parameters passed to the method by a distributedObject for map.put(key, value) parameters should be 'key' and 'value' parameters can be in binary or object form, underlying implementation will de-serialize lazily

Specified by:
getParameters in interface SecureRequest
Specified by:
getParameters in class AbstractMessageTask<P>
Returns:

getRequiredPermission

public Permission getRequiredPermission()


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.