Class ConnectionCache


  • public class ConnectionCache
    extends java.lang.Object
    Connection cache implementation.
    Author:
    Alexey Stashok
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionCache​(org.glassfish.grizzly.SocketConnectorHandler socketConnectorHandler, int highWaterMark, int maxParallelConnections, int numberToReclaim)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void offer​(org.glassfish.grizzly.Connection connection)  
      org.glassfish.grizzly.Connection poll​(java.net.SocketAddress localAddress, java.net.SocketAddress remoteAddress)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectionCache

        public ConnectionCache​(org.glassfish.grizzly.SocketConnectorHandler socketConnectorHandler,
                               int highWaterMark,
                               int maxParallelConnections,
                               int numberToReclaim)
    • Method Detail

      • poll

        public org.glassfish.grizzly.Connection poll​(java.net.SocketAddress localAddress,
                                                     java.net.SocketAddress remoteAddress)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • offer

        public void offer​(org.glassfish.grizzly.Connection connection)
      • close

        public void close()