Class ActivityPrint

java.lang.Object
com.landawn.abacus.pool.ActivityPrint
All Implemented Interfaces:
Serializable, Cloneable

public final class ActivityPrint extends Object implements Cloneable, Serializable
Since:
0.8
Author:
Haiyang Li
See Also:
  • Constructor Details

  • Method Details

    • valueOf

      public static ActivityPrint valueOf(long liveTime, long maxIdleTime)
      Parameters:
      liveTime -
      maxIdleTime -
      Returns:
    • getLiveTime

      public long getLiveTime()
      Gets the live time.
      Returns:
    • setLiveTime

      public ActivityPrint setLiveTime(long liveTime) throws IllegalArgumentException
      Sets the live time.
      Parameters:
      liveTime -
      Returns:
      Throws:
      IllegalArgumentException - the illegal argument exception
    • getMaxIdleTime

      public long getMaxIdleTime()
      Gets the max idle time.
      Returns:
    • setMaxIdleTime

      public ActivityPrint setMaxIdleTime(long maxIdleTime) throws IllegalArgumentException
      Sets the max idle time.
      Parameters:
      maxIdleTime -
      Returns:
      Throws:
      IllegalArgumentException - the illegal argument exception
    • getCreateTime

      public long getCreateTime()
      Gets the creates the time.
      Returns:
    • getLastAccessTime

      public long getLastAccessTime()
      Gets the last access time.
      Returns:
    • updateLastAccessTime

      public void updateLastAccessTime()
      Update last access time.
    • getAccessCount

      public int getAccessCount()
      Gets the access count.
      Returns:
    • updateAccessCount

      public void updateAccessCount()
      Update access count.
    • getExpirationTime

      public long getExpirationTime()
      Gets the expiration time.
      Returns:
    • isExpired

      public boolean isExpired()
      Checks if is expired.
      Returns:
      true, if is expired
    • clone

      public Object clone()
      Returns:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
      true, if successful
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: