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 Object |
service |
| Constructor and Description |
|---|
ClientRequest() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCallId() |
int |
getClassVersion()
Version for internal requests.
|
ClientEngine |
getClientEngine() |
ClientEndpoint |
getEndpoint() |
<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 |
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 Object service
protected transient ClientEndpoint endpoint
public void setSingleConnection()
public boolean isSingleConnection()
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 VersionedPortableCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.