Class OChannelBinaryAsynchClient

All Implemented Interfaces:
OChannelDataInput, OChannelDataOutput

public class OChannelBinaryAsynchClient extends OChannelBinary
  • Field Details

    • srvProtocolVersion

      protected final short srvProtocolVersion
  • Constructor Details

  • Method Details

    • beginResponse

      public byte[] beginResponse(int iRequesterId, boolean token) throws IOException
      Throws:
      IOException
    • beginResponse

      public byte[] beginResponse(int iRequesterId, long iTimeout, boolean token) throws IOException
      Throws:
      IOException
    • 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()
    • handleStatus

      public int handleStatus(byte iResult, int iClientTxId, OChannelBinaryAsynchClient.ExceptionHandler exceptionHandler) throws IOException
      Throws:
      IOException
    • handleStatus

      public int handleStatus(byte iResult, int iClientTxId) throws IOException
      Throws:
      IOException
    • handleException

      public void handleException(Throwable throwable)
    • beginRequest

      public void beginRequest(byte iCommand, ORemoteClientSession session) throws IOException
      Throws:
      IOException
    • beginRequest

      public void beginRequest(byte iCommand, ORemoteClientNodeSession nodeSession) throws IOException
      Throws:
      IOException
    • 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()