
public class OChannelBinaryAsynchClient extends OChannelBinary
| Modifier and Type | Field and Description |
|---|---|
protected short |
srvProtocolVersion |
debug, in, out| Constructor and Description |
|---|
OChannelBinaryAsynchClient(String remoteHost,
int remotePort,
String iDatabaseName,
OContextConfiguration iConfig,
int iProtocolVersion) |
OChannelBinaryAsynchClient(String remoteHost,
int remotePort,
String iDatabaseName,
OContextConfiguration iConfig,
int protocolVersion,
ORemoteServerEventListener asynchEventListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginRequest(byte iCommand,
OStorageRemoteSession session) |
byte[] |
beginResponse(int iRequesterId,
boolean token) |
byte[] |
beginResponse(int iRequesterId,
long iTimeout,
boolean token) |
void |
clearInput() |
void |
close() |
void |
endResponse() |
String |
getServerURL() |
OAsynchChannelServiceThread |
getServiceThread() |
int |
getSocketTimeout() |
short |
getSrvProtocolVersion()
Gets the major supported protocol version
|
protected int |
handleStatus(byte iResult,
int iClientTxId) |
boolean |
isConnected()
Tells if the channel is connected.
|
void |
setSocketTimeout(int socketTimeout) |
boolean |
tryLock() |
void |
unlock() |
drain, flush, getDataInput, getDataOutput, readBoolean, readByte, readBytes, readInt, readLong, readRID, readShort, readString, readVersion, writeBoolean, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeRID, writeShort, writeString, writeVersionacquireReadLock, acquireWriteLock, connected, getLocalIpAddress, getLocalSocketAddress, getLockRead, getLockWrite, releaseReadLock, releaseWriteLock, toString, tryAcquireWriteLock, updateMetricFlushes, updateMetricReceivedBytes, updateMetricTransmittedBytesbrowseListeners, getListenersCopy, registerListener, resetListeners, unregisterListenerpublic OChannelBinaryAsynchClient(String remoteHost, int remotePort, String iDatabaseName, OContextConfiguration iConfig, int iProtocolVersion) throws IOException
IOExceptionpublic OChannelBinaryAsynchClient(String remoteHost, int remotePort, String iDatabaseName, OContextConfiguration iConfig, int protocolVersion, ORemoteServerEventListener asynchEventListener) throws IOException
IOExceptionpublic byte[] beginResponse(int iRequesterId,
boolean token)
throws IOException
IOExceptionpublic byte[] beginResponse(int iRequesterId,
long iTimeout,
boolean token)
throws IOException
IOExceptionpublic void endResponse()
throws IOException
IOExceptionpublic void close()
close in class OChannelBinarypublic void clearInput()
throws IOException
clearInput in class OChannelBinaryIOExceptionpublic boolean isConnected()
public short getSrvProtocolVersion()
public String getServerURL()
public boolean tryLock()
public void unlock()
public OAsynchChannelServiceThread getServiceThread()
protected int handleStatus(byte iResult,
int iClientTxId)
throws IOException
IOExceptionpublic void beginRequest(byte iCommand,
OStorageRemoteSession session)
throws IOException
IOExceptionpublic int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
Copyright © 2009–2025 OrientDB. All rights reserved.