
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginRequest(byte iCommand,
OStorageRemoteNodeSession nodeSession) |
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 |
endRequest() |
void |
endResponse() |
String |
getServerURL() |
int |
getSocketTimeout() |
short |
getSrvProtocolVersion()
Gets the major supported protocol version
|
int |
handleStatus(byte iResult,
int iClientTxId) |
boolean |
isConnected()
Tells if the channel is connected.
|
void |
setSocketTimeout(int socketTimeout) |
boolean |
tryLock() |
void |
unlock() |
flush, getDataInput, getDataOutput, readBoolean, readByte, readBytes, readInt, readLong, readRID, readShort, readString, readVersion, setWaitResponseTimeout, 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 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 endRequest()
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 int handleStatus(byte iResult,
int iClientTxId)
throws IOException
IOExceptionpublic void beginRequest(byte iCommand,
OStorageRemoteSession session)
throws IOException
IOExceptionpublic void beginRequest(byte iCommand,
OStorageRemoteNodeSession nodeSession)
throws IOException
IOExceptionpublic int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
Copyright © 2009–2017 OrientDB. All rights reserved.