Interface DataSender

All Known Subinterfaces:
MultiPointSender
All Known Implementing Classes:
AbstractSender, BioSender, MultipointBioSender, NioSender, ParallelNioSender, PooledMultiSender, PooledParallelSender, PooledSender

public interface DataSender
  • Method Details Link icon

    • connect Link icon

      void connect() throws IOException
      Connect.
      Throws:
      IOException - when an error occurs
    • disconnect Link icon

      void disconnect()
      Disconnect.
    • isConnected Link icon

      boolean isConnected()
      Returns:
      true if connected
    • setRxBufSize Link icon

      void setRxBufSize(int size)
      Set the receive buffer size.
      Parameters:
      size - the new size
    • setTxBufSize Link icon

      void setTxBufSize(int size)
      Set the transmit buffer size.
      Parameters:
      size - the new size
    • keepalive Link icon

      boolean keepalive()
      Keepalive.
      Returns:
      true if kept alive
    • setTimeout Link icon

      void setTimeout(long timeout)
      Set the socket timeout.
      Parameters:
      timeout - in ms
    • setKeepAliveCount Link icon

      void setKeepAliveCount(int maxRequests)
      Set the amount of requests during which to keepalive.
      Parameters:
      maxRequests - the amount of requests
    • setKeepAliveTime Link icon

      void setKeepAliveTime(long keepAliveTimeInMs)
      Set the keepalive time.
      Parameters:
      keepAliveTimeInMs - the time in ms
    • getRequestCount Link icon

      int getRequestCount()
      Returns:
      the request count
    • getConnectTime Link icon

      long getConnectTime()
      Returns:
      the time to connect