Class ConnectionPool<T extends Connector>


  • @Deprecated
    public class ConnectionPool<T extends Connector>
    extends Pool<Connection<T>>
    Deprecated.
    Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.
    A connection pool to prevent to recreation of heavy byte buffers.
    • Constructor Detail

      • ConnectionPool

        public ConnectionPool​(ConnectionHelper<T> helper,
                              int initialSize)
        Deprecated.
        Constructor.
        Parameters:
        helper - The parent helper.
        initialSize - The initial pool size.
    • Method Detail

      • clear

        protected void clear​(Connection<T> connection)
        Deprecated.
        Description copied from class: Pool
        Clears the given object when it is checked in the pool. Does nothing by default.
        Overrides:
        clear in class Pool<Connection<T extends Connector>>
        Parameters:
        connection - The object to clear.