Class BasicClientConnectionManager

  • All Implemented Interfaces:
    ClientConnectionManager

    @Contract(threading=SAFE)
    @Deprecated
    public class BasicClientConnectionManager
    extends Object
    implements ClientConnectionManager
    Deprecated.
    A connection manager for a single connection. This connection manager maintains only one active connection. Even though this class is fully thread-safe it ought to be used by one execution thread only, as only one thread a time can lease the connection at a time.

    This connection manager will make an effort to reuse the connection for subsequent requests with the same route. It will, however, close the existing connection and open it for the given route, if the route of the persistent connection does not match that of the connection request. If the connection has been already been allocated IllegalStateException is thrown.

    This connection manager implementation should be used inside an EJB container instead of PoolingClientConnectionManager.

    Since:
    4.2
    • Field Detail

      • MISUSE_MESSAGE

        public static final String MISUSE_MESSAGE
        Deprecated.
        The message to be logged on multiple allocation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BasicClientConnectionManager

        public BasicClientConnectionManager​(SchemeRegistry schreg)
        Deprecated.
        Creates a new simple connection manager.
        Parameters:
        schreg - the scheme registry
      • BasicClientConnectionManager

        public BasicClientConnectionManager()
        Deprecated.