public class ConstantExpirationAfterWritePolicy extends java.lang.Object implements ExpirationAfterWritePolicy
Constructor and Description |
---|
ConstantExpirationAfterWritePolicy(long ttl) |
Modifier and Type | Method and Description |
---|---|
long |
getExpirationAfterWrite(java.lang.Object value) |
public ConstantExpirationAfterWritePolicy(long ttl)
ttl
- ttl in millisecondspublic long getExpirationAfterWrite(java.lang.Object value)
getExpirationAfterWrite
in interface ExpirationAfterWritePolicy
value
- Object that will be put in the cache (non-serialized)