Class StrictMaxPool<T>

    • Method Detail

      • discard

        public void discard​(T ctx)
        Description copied from interface: Pool
        Discard an object. This will be called in case of a system exception.
        Parameters:
        ctx - the object
      • getCurrentSize

        public int getCurrentSize()
      • getAvailableCount

        public int getAvailableCount()
      • getMaxSize

        public int getMaxSize()
      • get

        public T get()
        Get an instance without identity. Can be used by finders,create-methods, and activation
        Returns:
        Context /w instance
      • release

        public void release​(T obj)
        Return an instance after invocation.

        Called in 2 cases: a) Done with finder method b) Just removed

        Parameters:
        obj -
      • start

        public void start()
        Description copied from interface: Pool
        Start the pool.
      • stop

        public void stop()
        Description copied from interface: Pool
        Stop the pool.