@Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Document
Modifier and Type | Optional Element and Description |
---|---|
int |
expiry
An optional expiry time for the document.
|
TimeUnit |
expiryUnit
An optional time unit for the document's
expiry() , if set. |
boolean |
touchOnRead
An optional flag associated with
expiry() indicating whether the expiry timer should
be reset whenever the document is directly read (eg. findByOne, findById). |
public abstract int expiry
public abstract TimeUnit expiryUnit
expiry()
, if set. Default is TimeUnit.SECONDS
.public abstract boolean touchOnRead
expiry()
indicating whether the expiry timer should
be reset whenever the document is directly read (eg. findByOne, findById).Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.