Class OChannelBinaryAsynchClient


public class OChannelBinaryAsynchClient extends OChannelBinary
  • Field Details

    • logger

      public static final OLogger logger
    • srvProtocolVersion

      protected final short srvProtocolVersion
  • Constructor Details

  • Method Details

    • sendHandshake

      protected void sendHandshake(int iProtocolVersion) throws IOException
      Throws:
      IOException
    • waitResponse

      public byte waitResponse() throws IOException, SocketException
      Throws:
      IOException
      SocketException
    • endResponse

      public void endResponse() throws IOException
      Throws:
      IOException
    • endRequest

      public void endRequest() throws IOException
      Throws:
      IOException
    • close

      public void close()
      Overrides:
      close in class OChannelBinary
    • clearInput

      public void clearInput() throws IOException
      Overrides:
      clearInput in class OChannelBinary
      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

      public String 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()