Class AprEndpoint.SocketTimeouts

  • Enclosing class:
    AprEndpoint

    public static class AprEndpoint.SocketTimeouts
    extends Object
    • Field Detail

      • size

        protected int size
      • sockets

        protected long[] sockets
      • timeouts

        protected long[] timeouts
      • pos

        protected int pos
    • Constructor Detail

      • SocketTimeouts

        public SocketTimeouts​(int size)
    • Method Detail

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