|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.client.impl.client.ClientRequest
public abstract class ClientRequest
| Field Summary | |
|---|---|
protected int |
callId
|
protected ClientEngineImpl |
clientEngine
|
protected ClientEndpoint |
endpoint
|
protected OperationService |
operationService
|
protected SerializationService |
serializationService
|
protected Object |
service
|
| Constructor Summary | |
|---|---|
ClientRequest()
|
|
| Method Summary | ||
|---|---|---|
int |
getCallId()
|
|
int |
getClassVersion()
Version for internal requests. |
|
ClientEngine |
getClientEngine()
|
|
String |
getDistributedObjectName()
Used for SecurityInterceptor |
|
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 client. |
|
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 |
|
|
getService()
|
|
abstract String |
getServiceName()
|
|
boolean |
isSingleConnection()
|
|
abstract void |
process()
|
|
void |
read(PortableReader reader)
|
|
void |
readPortable(PortableReader reader)
Read portable fields using PortableReader |
|
void |
setCallId(int callId)
|
|
void |
setClientEngine(ClientEngineImpl clientEngine)
|
|
void |
setEndpoint(ClientEndpoint endpoint)
|
|
void |
setOperationService(OperationService operationService)
|
|
void |
setSerializationService(SerializationService serializationService)
|
|
void |
setService(Object service)
|
|
void |
setSingleConnection()
mark this request as SingleConnection |
|
void |
write(PortableWriter writer)
|
|
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter |
|
| 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 |
| Field Detail |
|---|
protected volatile int callId
protected transient ClientEngineImpl clientEngine
protected transient OperationService operationService
protected transient SerializationService serializationService
protected transient Object service
protected transient ClientEndpoint endpoint
| Constructor Detail |
|---|
public ClientRequest()
| Method Detail |
|---|
public void setSingleConnection()
public boolean isSingleConnection()
public void setOperationService(OperationService operationService)
public void setSerializationService(SerializationService serializationService)
public abstract void process()
throws Exception
Exceptionpublic ClientEngine getClientEngine()
public final void setClientEngine(ClientEngineImpl clientEngine)
public <S> S getService()
public final void setService(Object service)
public ClientEndpoint getEndpoint()
public final void setEndpoint(ClientEndpoint endpoint)
public abstract String getServiceName()
public int getCallId()
public void setCallId(int callId)
public final void writePortable(PortableWriter writer)
throws IOException
Portable
writePortable in interface Portablewriter - PortableWriter
IOException
public void write(PortableWriter writer)
throws IOException
IOException
public final void readPortable(PortableReader reader)
throws IOException
Portable
readPortable in interface Portablereader - PortableReader
IOException
public 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()
SecureRequestSecurityInterceptor
getDistributedObjectType in interface SecureRequestpublic String getDistributedObjectName()
SecureRequestSecurityInterceptor
getDistributedObjectName 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 client.
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 lazily
getParameters in interface SecureRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||