
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(java.lang.String remoteHost,
int remotePort,
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() |
java.lang.String |
getServerURL() |
int |
getSocketTimeout() |
short |
getSrvProtocolVersion()
Gets the major supported protocol version
|
void |
handleException(java.lang.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(java.lang.String remoteHost,
int remotePort,
OContextConfiguration iConfig,
int iProtocolVersion)
throws java.io.IOException
java.io.IOExceptionpublic byte[] beginResponse(int iRequesterId,
boolean token)
throws java.io.IOException
java.io.IOExceptionpublic byte[] beginResponse(int iRequesterId,
long iTimeout,
boolean token)
throws java.io.IOException
java.io.IOExceptionpublic void endResponse()
throws java.io.IOException
java.io.IOExceptionpublic void endRequest()
throws java.io.IOException
java.io.IOExceptionpublic void close()
close in class OChannelBinarypublic void clearInput()
throws java.io.IOException
clearInput in class OChannelBinaryjava.io.IOExceptionpublic boolean isConnected()
public short getSrvProtocolVersion()
public java.lang.String getServerURL()
public boolean tryLock()
public void unlock()
public int handleStatus(byte iResult,
int iClientTxId,
OChannelBinaryAsynchClient.ExceptionHandler exceptionHandler)
throws java.io.IOException
java.io.IOExceptionpublic int handleStatus(byte iResult,
int iClientTxId)
throws java.io.IOException
java.io.IOExceptionpublic void handleException(java.lang.Throwable throwable)
public void beginRequest(byte iCommand,
OStorageRemoteSession session)
throws java.io.IOException
java.io.IOExceptionpublic void beginRequest(byte iCommand,
OStorageRemoteNodeSession nodeSession)
throws java.io.IOException
java.io.IOExceptionpublic int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public long getLastUse()
public void markReturned()
public void markInUse()
public boolean isInUse()
Copyright © 2009–2022 OrientDB. All rights reserved.