Package com.landawn.abacus.pool
Class ActivityPrint
java.lang.Object
com.landawn.abacus.pool.ActivityPrint
- All Implemented Interfaces:
Serializable
,Cloneable
- Since:
- 0.8
- Author:
- Haiyang Li
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
Gets the access count.long
Gets the creates the time.long
Gets the expiration time.long
Gets the last access time.long
Gets the live time.long
Gets the max idle time.int
hashCode()
boolean
Checks if is expired.setLiveTime
(long liveTime) Sets the live time.setMaxIdleTime
(long maxIdleTime) Sets the max idle time.toString()
void
Update access count.void
Update last access time.static ActivityPrint
valueOf
(long liveTime, long maxIdleTime)
-
Constructor Details
-
ActivityPrint
- Throws:
IllegalArgumentException
-
-
Method Details
-
valueOf
- Parameters:
liveTime
-maxIdleTime
-- Returns:
-
getLiveTime
public long getLiveTime()Gets the live time.- Returns:
-
setLiveTime
Sets the live time.- Parameters:
liveTime
-- Returns:
- Throws:
IllegalArgumentException
- the illegal argument exception
-
getMaxIdleTime
public long getMaxIdleTime()Gets the max idle time.- Returns:
-
setMaxIdleTime
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
-
hashCode
public int hashCode() -
equals
-
toString
-