com.hazelcast.cache.impl.client
Class AbstractCacheRequest

java.lang.Object
  extended by com.hazelcast.client.impl.client.ClientRequest
      extended by com.hazelcast.client.impl.client.PartitionClientRequest
          extended by com.hazelcast.client.impl.client.KeyBasedClientRequest
              extended by com.hazelcast.cache.impl.client.AbstractCacheRequest
All Implemented Interfaces:
RetryableRequest, SecureRequest, Portable, VersionedPortable
Direct Known Subclasses:
CacheContainsKeyRequest, CacheEntryProcessorRequest, CacheGetAndRemoveRequest, CacheGetAndReplaceRequest, CacheGetConfigRequest, CacheGetRequest, CachePutIfAbsentRequest, CachePutRequest, CacheRemoveRequest, CacheReplaceRequest

public abstract class AbstractCacheRequest
extends KeyBasedClientRequest
implements RetryableRequest

Abstract cache request to handle a completion id registration.


Field Summary
protected  InMemoryFormat inMemoryFormat
           
protected  String name
           
 
Fields inherited from class com.hazelcast.client.impl.client.ClientRequest
callId, clientEngine, endpoint, operationService, serializationService, service
 
Constructor Summary
AbstractCacheRequest()
           
AbstractCacheRequest(String name, InMemoryFormat inMemoryFormat)
           
 
Method Summary
 int getFactoryId()
          Returns PortableFactory id for this portable class
protected  CacheOperationProvider getOperationProvider()
           
 Permission getRequiredPermission()
           
 String getServiceName()
           
 void read(PortableReader reader)
           
 void setCompletionId(Integer completionId)
           
 void write(PortableWriter writer)
           
 
Methods inherited from class com.hazelcast.client.impl.client.KeyBasedClientRequest
getKey, getPartition
 
Methods inherited from class com.hazelcast.client.impl.client.PartitionClientRequest
afterResponse, beforeProcess, beforeResponse, filter, getReplicaIndex, prepareOperation, process
 
Methods inherited from class com.hazelcast.client.impl.client.ClientRequest
getCallId, getClassVersion, getClientEngine, getDistributedObjectName, getDistributedObjectType, getEndpoint, getMethodName, getParameters, getService, isSingleConnection, readPortable, setCallId, setClientEngine, setEndpoint, setOperationService, setSerializationService, setService, setSingleConnection, writePortable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.nio.serialization.Portable
getClassId
 

Field Detail

name

protected String name

inMemoryFormat

protected InMemoryFormat inMemoryFormat
Constructor Detail

AbstractCacheRequest

public AbstractCacheRequest()

AbstractCacheRequest

public AbstractCacheRequest(String name,
                            InMemoryFormat inMemoryFormat)
Method Detail

getFactoryId

public final int getFactoryId()
Description copied from interface: Portable
Returns PortableFactory id for this portable class

Specified by:
getFactoryId in interface Portable
Returns:
factory id

getServiceName

public final String getServiceName()
Specified by:
getServiceName in class ClientRequest

setCompletionId

public void setCompletionId(Integer completionId)

getOperationProvider

protected CacheOperationProvider getOperationProvider()

getRequiredPermission

public Permission getRequiredPermission()
Specified by:
getRequiredPermission in interface SecureRequest

write

public void write(PortableWriter writer)
           throws IOException
Overrides:
write in class ClientRequest
Throws:
IOException

read

public void read(PortableReader reader)
          throws IOException
Overrides:
read in class ClientRequest
Throws:
IOException


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