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, wait
getRequiredPermission
getClassId, getFactoryId
protected 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
Portable
writePortable
in interface Portable
writer
- PortableWriterIOException
public void write(PortableWriter writer) throws IOException
IOException
public final void readPortable(PortableReader reader) throws IOException
Portable
readPortable
in interface Portable
reader
- PortableReaderIOException
public void read(PortableReader reader) throws IOException
IOException
public int getClassVersion()
This should be updated/incremented when serialization of a request changes.
getClassVersion
in interface VersionedPortable
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.