public final class ActivityPrint extends Object implements Cloneable, Serializable
| Constructor and Description |
|---|
ActivityPrint(long liveTime,
long maxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object obj) |
int |
getAccessCount()
Gets the access count.
|
long |
getCreateTime()
Gets the creates the time.
|
long |
getExpirationTime()
Gets the expiration time.
|
long |
getLastAccessTime()
Gets the last access time.
|
long |
getLiveTime()
Gets the live time.
|
long |
getMaxIdleTime()
Gets the max idle time.
|
int |
hashCode() |
boolean |
isExpired()
Checks if is expired.
|
ActivityPrint |
setLiveTime(long liveTime)
Sets the live time.
|
ActivityPrint |
setMaxIdleTime(long maxIdleTime)
Sets the max idle time.
|
String |
toString() |
void |
updateAccessCount()
Update access count.
|
void |
updateLastAccessTime()
Update last access time.
|
static ActivityPrint |
valueOf(long liveTime,
long maxIdleTime) |
public ActivityPrint(long liveTime,
long maxIdleTime)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static ActivityPrint valueOf(long liveTime, long maxIdleTime)
liveTime - maxIdleTime - public long getLiveTime()
public ActivityPrint setLiveTime(long liveTime) throws IllegalArgumentException
liveTime - IllegalArgumentException - the illegal argument exceptionpublic long getMaxIdleTime()
public ActivityPrint setMaxIdleTime(long maxIdleTime) throws IllegalArgumentException
maxIdleTime - IllegalArgumentException - the illegal argument exceptionpublic long getCreateTime()
public long getLastAccessTime()
public void updateLastAccessTime()
public int getAccessCount()
public void updateAccessCount()
public long getExpirationTime()
public boolean isExpired()
public boolean equals(Object obj)
Copyright © 2021. All rights reserved.