Class OChannelBinaryClientAbstract

All Implemented Interfaces:
OChannelDataInput, OChannelDataOutput
Direct Known Subclasses:
OChannelBinarySynchClient

public abstract class OChannelBinaryClientAbstract extends OChannelBinary
Abstract implementation of binary channel.
  • Field Details

    • socketTimeout

      protected final int socketTimeout
    • srvProtocolVersion

      protected final short srvProtocolVersion
    • serverURL

      protected String serverURL
    • currentStatus

      protected byte currentStatus
    • currentSessionId

      protected int currentSessionId
  • Constructor Details

  • Method Details

    • 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()
    • handleStatus

      protected int handleStatus(byte iResult, int iClientTxId) throws IOException
      Throws:
      IOException
    • setReadResponseTimeout

      protected void setReadResponseTimeout() throws SocketException
      Throws:
      SocketException
    • throwSerializedException

      protected void throwSerializedException(byte[] serializedException) throws IOException
      Throws:
      IOException