
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, writeVersionacquireReadLock, acquireWriteLock, connected, getLocalIpAddress, 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,
OChannelBinaryAsynchClient.ExceptionHandler exceptionHandler)
throws IOException
IOExceptionpublic int handleStatus(byte iResult,
int iClientTxId)
throws IOException
IOExceptionpublic void handleException(Throwable throwable)
public 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)
public long getLastUse()
public void markReturned()
public void markInUse()
public boolean isInUse()
Copyright © 2009–2025 OrientDB. All rights reserved.