public class OChannelBinaryAsynchClient extends OChannelBinary
Modifier and Type | Class and Description |
---|---|
static interface |
OChannelBinaryAsynchClient.ExceptionHandler |
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() |
long |
getLastUse() |
String |
getServerURL() |
int |
getSocketTimeout() |
short |
getSrvProtocolVersion()
Gets the major supported protocol version
|
void |
handleException(Throwable throwable) |
int |
handleStatus(byte iResult,
int iClientTxId) |
int |
handleStatus(byte iResult,
int iClientTxId,
OChannelBinaryAsynchClient.ExceptionHandler exceptionHandler) |
boolean |
isConnected()
Tells if the channel is connected.
|
boolean |
isInUse() |
void |
markInUse() |
void |
markReturned() |
void |
setSocketTimeout(int socketTimeout) |
boolean |
tryLock() |
void |
unlock() |
flush, getDataInput, getDataOutput, readBoolean, readByte, readBytes, readInt, readLong, readRID, readShort, readString, readVersion, setReadRequestTimeout, setWaitRequestTimeout, setWaitResponseTimeout, writeBoolean, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeRID, writeShort, writeString, writeVersion
acquireReadLock, acquireWriteLock, connected, getLocalIpAddress, getLockWrite, releaseReadLock, releaseWriteLock, toString, tryAcquireWriteLock, updateMetricFlushes, updateMetricReceivedBytes, updateMetricTransmittedBytes
browseListeners, getListenersCopy, registerListener, resetListeners, unregisterListener
public OChannelBinaryAsynchClient(String remoteHost, int remotePort, String iDatabaseName, OContextConfiguration iConfig, int iProtocolVersion) throws IOException
IOException
public byte[] beginResponse(int iRequesterId, boolean token) throws IOException
IOException
public byte[] beginResponse(int iRequesterId, long iTimeout, boolean token) throws IOException
IOException
public void endResponse() throws IOException
IOException
public void endRequest() throws IOException
IOException
public void close()
close
in class OChannelBinary
public void clearInput() throws IOException
clearInput
in class OChannelBinary
IOException
public boolean isConnected()
public short getSrvProtocolVersion()
public String getServerURL()
public boolean tryLock()
public void unlock()
public int handleStatus(byte iResult, int iClientTxId, OChannelBinaryAsynchClient.ExceptionHandler exceptionHandler) throws IOException
IOException
public int handleStatus(byte iResult, int iClientTxId) throws IOException
IOException
public void handleException(Throwable throwable)
public void beginRequest(byte iCommand, OStorageRemoteSession session) throws IOException
IOException
public void beginRequest(byte iCommand, OStorageRemoteNodeSession nodeSession) throws IOException
IOException
public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public long getLastUse()
public void markReturned()
public void markInUse()
public boolean isInUse()
Copyright © 2009–2020 OrientDB. All rights reserved.