类 ExpiringValue<V>
java.lang.Object
com.sh.util.concurrent.expiringmap.ExpiringValue<V>
- 类型参数:
V- the type of value being stored
A value which should be stored in an
ExpiringMap with optional control over its expiration.-
构造器概要
构造器构造器说明ExpiringValue(V value) Creates an ExpiringValue to be stored in anExpiringMap.ExpiringValue(V value, long duration, TimeUnit timeUnit) Creates an ExpiringValue to be stored in anExpiringMap.ExpiringValue(V value, ExpirationPolicy expirationPolicy) Creates an ExpiringValue to be stored in anExpiringMap.ExpiringValue(V value, ExpirationPolicy expirationPolicy, long duration, TimeUnit timeUnit) Creates an ExpiringValue to be stored in anExpiringMap. -
方法概要
-
构造器详细资料
-
ExpiringValue
Creates an ExpiringValue to be stored in anExpiringMap. The map's default values forexpiration policyandExpiringMap.getExpiration()expiration} will be used.- 参数:
value- the value to store- 另请参阅:
-
ExpiringValue
Creates an ExpiringValue to be stored in anExpiringMap. The map's defaultExpiringMap.getExpiration()expiration} will be used.- 参数:
value- the value to storeexpirationPolicy- the expiration policy for the value- 另请参阅:
-
ExpiringValue
Creates an ExpiringValue to be stored in anExpiringMap. The map's defaultexpiration policywill be used.- 参数:
value- the value to storeduration- the length of time after an entry is created that it should be removedtimeUnit- the unit thatdurationis expressed in- 抛出:
NullPointerException- on null timeUnit- 另请参阅:
-
ExpiringValue
Creates an ExpiringValue to be stored in anExpiringMap.- 参数:
value- the value to storeduration- the length of time after an entry is created that it should be removedtimeUnit- the unit thatdurationis expressed inexpirationPolicy- the expiration policy for the value- 抛出:
NullPointerException- on null timeUnit- 另请参阅:
-
-
方法详细资料