Class OChannelBinaryAsynchClient
java.lang.Object
com.orientechnologies.orient.enterprise.channel.OChannel
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary
com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary
OChannelBinary.WrapStreams -
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary
debug, in, inChannel, maxChunkSize, out, outChannelFields inherited from class com.orientechnologies.orient.enterprise.channel.OChannel
inStream, outStream, socket, socketBufferSize -
Constructor Summary
ConstructorsConstructorDescriptionOChannelBinaryAsynchClient(String remoteHost, int remotePort, OContextConfiguration config, OSocketFactory factory, int iProtocolVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidvoidlongintshortGets the major supported protocol versionbooleanTells if the channel is connected.booleanisInUse()voidvoidprotected voidsendHandshake(int iProtocolVersion) voidsetSocketTimeout(int socketTimeout) booleantryLock()voidunlock()byteMethods inherited from class com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary
flush, getChannelDataInput, getChannelDataOutput, getDataInput, getDataOutput, initChannels, initDebug, setReadRequestTimeout, setWaitRequestTimeout, setWaitResponseTimeoutMethods inherited from class com.orientechnologies.orient.enterprise.channel.OChannel
acquireReadLock, acquireWriteLock, connected, getLocalIpAddress, getLockWrite, releaseReadLock, releaseWriteLock, toString, tryAcquireWriteLock, updateMetricFlushes, updateMetricReceivedBytes, updateMetricTransmittedBytes
-
Field Details
-
logger
-
srvProtocolVersion
protected final short srvProtocolVersion
-
-
Constructor Details
-
OChannelBinaryAsynchClient
public OChannelBinaryAsynchClient(String remoteHost, int remotePort, OContextConfiguration config, OSocketFactory factory, int iProtocolVersion) throws IOException - Throws:
IOException
-
-
Method Details
-
sendHandshake
- Throws:
IOException
-
waitResponse
- Throws:
IOExceptionSocketException
-
endResponse
- Throws:
IOException
-
endRequest
- Throws:
IOException
-
close
public void close()- Overrides:
closein classOChannelBinary
-
clearInput
- Overrides:
clearInputin classOChannelBinary- Throws:
IOException
-
isConnected
public boolean isConnected()Tells if the channel is connected.- Returns:
- true if it's connected, otherwise false.
-
getSrvProtocolVersion
public short getSrvProtocolVersion()Gets the major supported protocol version -
getServerURL
-
tryLock
public boolean tryLock() -
unlock
public void unlock() -
getSocketTimeout
public int getSocketTimeout() -
setSocketTimeout
public void setSocketTimeout(int socketTimeout) -
getLastUse
public long getLastUse() -
markReturned
public void markReturned() -
markInUse
public void markInUse() -
isInUse
public boolean isInUse()
-