public class RenewDecorate<T> extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_DURATION_SECS |
| 构造器和说明 |
|---|
RenewDecorate(T renewal)
use for task parameter
|
RenewDecorate(T renewal,
long durationSECS)
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getBeginTimestamp()
Getter method for property beginTimestamp.
|
long |
getLastUpdateTimestamp()
Getter method for property lastUpdateTimestamp.
|
T |
getRenewal()
Getter method for property renewal.
|
boolean |
isExpired()
verify expired or not
|
void |
reNew()
refresh lastUpdateTimestamp
|
void |
reNew(long durationSECS)
refresh lastUpdateTimestamp by durationSECS
|
void |
setRenewal(T renewal)
Setter method for property renewal.
|
public static final int DEFAULT_DURATION_SECS
public RenewDecorate(T renewal)
renewal - public RenewDecorate(T renewal, long durationSECS)
renewal - durationSECS - public boolean isExpired()
public void reNew()
public void reNew(long durationSECS)
durationSECS - public T getRenewal()
public void setRenewal(T renewal)
renewal - value to be assigned to property renewalpublic long getBeginTimestamp()
public long getLastUpdateTimestamp()
Copyright © 2019 The Ant Financial. All rights reserved.