Interface Poolable

All Known Implementing Classes:
AbstractPoolable, PoolableWrapper

public interface Poolable
Since:
0.8
Author:
Haiyang Li
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Method destroy.
    static <T> PoolableWrapper<T>
    wrap(T srcObject)
    Wrap the the source object with Long.MAX_VALUE liveTime and Long.MAX_VALUE maxIdleTime.
    static <T> PoolableWrapper<T>
    wrap(T srcObject, long liveTime, long maxIdleTime)
    Wrap the the source object with specified liveTime and maxIdleTime.
  • Method Details

    • activityPrint

      ActivityPrint activityPrint()
      Returns:
      ActivityPrint
    • destroy

      void destroy()
      Method destroy.
    • wrap

      static <T> PoolableWrapper<T> wrap(T srcObject)
      Wrap the the source object with Long.MAX_VALUE liveTime and Long.MAX_VALUE maxIdleTime.
      Type Parameters:
      T -
      Parameters:
      srcObject -
      Returns:
    • wrap

      static <T> PoolableWrapper<T> wrap(T srcObject, long liveTime, long maxIdleTime)
      Wrap the the source object with specified liveTime and maxIdleTime.
      Type Parameters:
      T -
      Parameters:
      srcObject -
      liveTime -
      maxIdleTime -
      Returns: