Class OChannelBinarySynchClient
java.lang.Object
com.orientechnologies.orient.enterprise.channel.OChannel
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary
com.orientechnologies.orient.client.binary.OChannelBinarySynchClient
Synchronous implementation of binary channel.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary
OChannelBinary.WrapStreams -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final shortFields 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
ConstructorsConstructorDescriptionOChannelBinarySynchClient(OSocketFactory factory, String remoteHost, int remotePort, OContextConfiguration iConfig, int protocolVersion) -
Method Summary
Methods inherited from class com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary
close, 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
-
socketTimeout
protected final int socketTimeout -
srvProtocolVersion
protected final short srvProtocolVersion
-
-
Constructor Details
-
OChannelBinarySynchClient
public OChannelBinarySynchClient(OSocketFactory factory, String remoteHost, int remotePort, OContextConfiguration iConfig, int protocolVersion) throws IOException - Throws:
IOException
-
-
Method Details
-
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 -
tryLock
public boolean tryLock() -
unlock
public void unlock() -
setReadResponseTimeout
- Throws:
SocketException
-