com.hazelcast.client.impl.client
Class PartitionClientRequest

java.lang.Object
  extended by com.hazelcast.client.impl.client.ClientRequest
      extended by com.hazelcast.client.impl.client.PartitionClientRequest
All Implemented Interfaces:
SecureRequest, Portable, VersionedPortable
Direct Known Subclasses:
AbstractAlterRequest, AbstractAlterRequest, AtomicLongRequest, CacheIterateRequest, CollectionRequest, KeyBasedClientRequest, ModifyRequest, MultiMapRequest, PartitionCallableRequest, PublishRequest, QueueRequest, ReadRequest, ReadRequest, SemaphoreRequest

public abstract class PartitionClientRequest
extends ClientRequest

Base class for partition based client request.


Field Summary
 
Fields inherited from class com.hazelcast.client.impl.client.ClientRequest
callId, clientEngine, endpoint, operationService, serializationService, service
 
Constructor Summary
PartitionClientRequest()
           
 
Method Summary
protected  void afterResponse()
          Called on node side, after sending the response to the client.
protected  void beforeProcess()
          Called on node side, before starting any operation.
protected  void beforeResponse()
          Called on node side, after process is run and right before sending the response to the client.
protected  Object filter(Object response)
           
protected abstract  int getPartition()
           
protected  int getReplicaIndex()
           
protected abstract  Operation prepareOperation()
           
 void process()
           
 
Methods inherited from class com.hazelcast.client.impl.client.ClientRequest
getCallId, getClassVersion, getClientEngine, getDistributedObjectName, getDistributedObjectType, getEndpoint, getMethodName, getParameters, getService, getServiceName, isSingleConnection, read, readPortable, setCallId, setClientEngine, setEndpoint, setOperationService, setSerializationService, setService, setSingleConnection, write, 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.client.impl.client.SecureRequest
getRequiredPermission
 
Methods inherited from interface com.hazelcast.nio.serialization.Portable
getClassId, getFactoryId
 

Constructor Detail

PartitionClientRequest

public PartitionClientRequest()
Method Detail

beforeProcess

protected void beforeProcess()
Called on node side, before starting any operation.


beforeResponse

protected void beforeResponse()
Called on node side, after process is run and right before sending the response to the client.


afterResponse

protected void afterResponse()
Called on node side, after sending the response to the client.


process

public final void process()
Specified by:
process in class ClientRequest

prepareOperation

protected abstract Operation prepareOperation()

getPartition

protected abstract int getPartition()

getReplicaIndex

protected int getReplicaIndex()

filter

protected Object filter(Object response)


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