DataSender (Apache Tomcat 10.1.16 API Documentation)
Description: declaration: package: org.apache.catalina.tribes.transport, interface: DataSender

Package org.apache.catalina.tribes.transport

# Interface DataSender

All Known Subinterfaces:
  `MultiPointSender`

All Known Implementing Classes:
  `AbstractSender`, `NioSender`, `ParallelNioSender`, `PooledParallelSender`, `PooledSender`

public interface DataSender

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `connect()`
  `void`
  `disconnect()`
  `long`
  `getConnectTime()`
  `int`
  `getRequestCount()`
  `boolean`
  `isConnected()`
  `boolean`
  `keepalive()`
  `void`
  `setKeepAliveCount(int maxRequests)`
  `void`
  `setKeepAliveTime(long keepAliveTimeInMs)`
  `void`
  `setRxBufSize(int size)`
  `void`
  `setTimeout(long timeout)`
  `void`
  `setTxBufSize(int size)`

- ## Method Details

  - ### connect

    void connect() throws IOException
    Throws:
      `IOException`

  - ### disconnect

    void disconnect()

  - ### isConnected

    boolean isConnected()

  - ### setRxBufSize

    void setRxBufSize(int size)

  - ### setTxBufSize

    void setTxBufSize(int size)

  - ### keepalive

    boolean keepalive()

  - ### setTimeout

    void setTimeout(long timeout)

  - ### setKeepAliveCount

    void setKeepAliveCount(int maxRequests)

  - ### setKeepAliveTime

    void setKeepAliveTime(long keepAliveTimeInMs)

  - ### getRequestCount

    int getRequestCount()

  - ### getConnectTime

    long getConnectTime()