AprEndpoint.SocketTimeouts (Apache Tomcat 9.0.111 API Documentation)
Description: declaration: package: org.apache.tomcat.util.net, class: AprEndpoint, class: SocketTimeouts

# Class AprEndpoint.SocketTimeouts

java.lang.Object
org.apache.tomcat.util.net.AprEndpoint.SocketTimeouts

Enclosing class:
  `AprEndpoint`

public static class AprEndpoint.SocketTimeouts extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected int`
  `pos`
  `protected int`
  `size`
  `protected long[]`
  `sockets`
  `protected long[]`
  `timeouts`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SocketTimeouts(int size)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(long socket, long timeout)`
  `long`
  `check(long date)`
  `long`
  `remove(long socket)`
  Removes the specified socket from the poller.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### size

    protected int size

  - ### sockets

    protected long[] sockets

  - ### timeouts

    protected long[] timeouts

  - ### pos

    protected int pos

- ## Constructor Details

  - ### SocketTimeouts

    public SocketTimeouts(int size)

- ## Method Details

  - ### add

    public void add(long socket, long timeout)

  - ### remove

    public long remove(long socket)
    Removes the specified socket from the poller.
    Parameters:
      `socket` - The socket to remove
    Returns:
      The configured timeout for the socket or zero if the socket was not in the list of socket timeouts

  - ### check

    public long check(long date)