Class ConnectorPool.Pool

  • Enclosing class:
    ConnectorPool<T extends IConnector>

    protected class ConnectorPool.Pool
    extends java.lang.Object
    This class represents a value in the pool hash, which corresponds to a given key.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int globalMax
      The global maximum for this pool
      protected boolean isAlive
      Whether this pool is alive
      protected int localInUse
      The number of instances that are actually connected and in use, as of the last poll
      protected int localMax
      The number of instances we are allowed to hand out locally, at this time
      protected int numFree
      The number of local instances we can currently pass out to requesting threads.
      protected java.lang.String serviceName
      The (anonymous) service name
      protected java.lang.String serviceTypeName
      Service type name
      protected java.util.List<T> stack
      Place where we keep unused connector instances
      protected java.lang.String targetCalcLockName
      The target calculation lock name
    • Constructor Summary

      Constructors 
      Constructor Description
      Pool​(IThreadContext threadContext, int maxCount, java.lang.String connectionName)
      Constructor
    • Field Detail

      • isAlive

        protected boolean isAlive
        Whether this pool is alive
      • globalMax

        protected int globalMax
        The global maximum for this pool
      • serviceTypeName

        protected final java.lang.String serviceTypeName
        Service type name
      • serviceName

        protected final java.lang.String serviceName
        The (anonymous) service name
      • targetCalcLockName

        protected final java.lang.String targetCalcLockName
        The target calculation lock name
      • stack

        protected final java.util.List<T extends IConnector> stack
        Place where we keep unused connector instances
      • numFree

        protected int numFree
        The number of local instances we can currently pass out to requesting threads. Initially zero until pool is apportioned
      • localMax

        protected int localMax
        The number of instances we are allowed to hand out locally, at this time
      • localInUse

        protected int localInUse
        The number of instances that are actually connected and in use, as of the last poll