@Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Document
| Modifier and Type | Optional Element and Description |
|---|---|
String |
collection |
int |
expiration
An optional expiration time for the document.
|
String |
expirationExpression
Same as
expiration() but allows the actual value to be set using standard Spring property sources mechanism. |
TimeUnit |
expirationUnit
An optional time unit for the document's
expiration(), if set. |
String |
language
Defines the default language to be used with this document.
|
boolean |
touchOnRead
An optional flag associated indicating whether the expiration timer should be reset whenever the document is directly read
|
public abstract String collection
public abstract String language
public abstract int expiration
Expiration
expiration() or expirationExpression()
See WritePolicy.expiration for possible values.public abstract String expirationExpression
expiration() but allows the actual value to be set using standard Spring property sources mechanism.
Only one might be set at the same time: either expiration() or expirationExpression(). PropertyResolver.resolveRequiredPlaceholders(String).
public abstract TimeUnit expirationUnit
expiration(), if set. Default is TimeUnit.SECONDS.Copyright © 2012–2019 Aerospike, Inc. All rights reserved.