com.hazelcast.client
Class ClientRequest

java.lang.Object
  extended by com.hazelcast.client.ClientRequest
All Implemented Interfaces:
SecureRequest, Portable
Direct Known Subclasses:
AllPartitionsClientRequest, CallableClientRequest, GetDistributedObjectsRequest, InvocationClientRequest, MultiPartitionClientRequest, MultiTargetClientRequest, PartitionClientRequest, TargetClientRequest

public abstract class ClientRequest
extends Object
implements Portable, SecureRequest


Field Summary
protected  int callId
           
protected  ClientEngineImpl clientEngine
           
protected  ClientEndpoint endpoint
           
protected  Object service
           
 
Constructor Summary
ClientRequest()
           
 
Method Summary
 int getCallId()
           
 ClientEngine getClientEngine()
           
 ClientEndpoint getEndpoint()
           
<S> S
getService()
           
abstract  String getServiceName()
           
 boolean isSingleConnection()
           
 void read(PortableReader reader)
           
 void readPortable(PortableReader reader)
           
 void setCallId(int callId)
           
 void setSingleConnection()
          mark this request as SingleConnection
 void write(PortableWriter writer)
           
 void writePortable(PortableWriter writer)
           
 
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, getFactoryId
 
Methods inherited from interface com.hazelcast.client.SecureRequest
getRequiredPermission
 

Field Detail

callId

protected int callId

clientEngine

protected transient ClientEngineImpl clientEngine

service

protected transient Object service

endpoint

protected transient ClientEndpoint endpoint
Constructor Detail

ClientRequest

public ClientRequest()
Method Detail

setSingleConnection

public void setSingleConnection()
mark this request as SingleConnection


isSingleConnection

public boolean isSingleConnection()
Returns:
true if this request is SingleConnection false otherwise

getClientEngine

public ClientEngine getClientEngine()

getService

public <S> S getService()

getEndpoint

public ClientEndpoint getEndpoint()

getServiceName

public abstract String getServiceName()

getCallId

public int getCallId()

setCallId

public void setCallId(int callId)

writePortable

public final void writePortable(PortableWriter writer)
                         throws IOException
Specified by:
writePortable in interface Portable
Throws:
IOException

write

public void write(PortableWriter writer)
           throws IOException
Throws:
IOException

readPortable

public final void readPortable(PortableReader reader)
                        throws IOException
Specified by:
readPortable in interface Portable
Throws:
IOException

read

public void read(PortableReader reader)
          throws IOException
Throws:
IOException


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