public abstract class ClientRequest extends Object implements SecureRequest, VersionedPortable
| Modifier and Type | Field and Description |
|---|---|
protected int |
callId |
protected ClientEngineImpl |
clientEngine |
protected ClientEndpoint |
endpoint |
protected OperationService |
operationService |
protected SerializationService |
serializationService |
protected Object |
service |
| Constructor and Description |
|---|
ClientRequest() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCallId() |
int |
getClassVersion()
Version for internal requests.
|
ClientEngine |
getClientEngine() |
String |
getDistributedObjectType()
Used for
SecurityInterceptor |
ClientEndpoint |
getEndpoint() |
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 requests. |
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 |
<S> S |
getService() |
abstract String |
getServiceName() |
boolean |
isSingleConnection() |
void |
read(PortableReader reader) |
void |
readPortable(PortableReader reader)
Read portable fields using PortableReader
|
void |
setCallId(int callId) |
void |
setOperationService(OperationService operationService) |
void |
setSerializationService(SerializationService serializationService) |
void |
setSingleConnection()
mark this request as SingleConnection
|
void |
write(PortableWriter writer) |
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredPermissiongetClassId, getFactoryIdprotected int callId
protected transient ClientEngineImpl clientEngine
protected transient OperationService operationService
protected transient SerializationService serializationService
protected transient Object service
protected transient ClientEndpoint endpoint
public void setSingleConnection()
public boolean isSingleConnection()
public void setOperationService(OperationService operationService)
public void setSerializationService(SerializationService serializationService)
public ClientEngine getClientEngine()
public <S> S getService()
public ClientEndpoint getEndpoint()
public abstract String getServiceName()
public int getCallId()
public void setCallId(int callId)
public final void writePortable(PortableWriter writer) throws IOException
PortablewritePortable in interface Portablewriter - PortableWriterIOExceptionpublic void write(PortableWriter writer) throws IOException
IOExceptionpublic final void readPortable(PortableReader reader) throws IOException
PortablereadPortable in interface Portablereader - PortableReaderIOExceptionpublic void read(PortableReader reader) throws IOException
IOExceptionpublic int getClassVersion()
This should be updated/incremented when serialization of a request changes.
getClassVersion in interface VersionedPortablepublic String getDistributedObjectType()
SecureRequestSecurityInterceptorgetDistributedObjectType in interface SecureRequestpublic String getMethodName()
SecureRequestSecurityInterceptor
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 requests.getMethodName in interface SecureRequestpublic Object[] getParameters()
SecureRequestSecurityInterceptor
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 lazilygetParameters in interface SecureRequestCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.