Class CacheAdd.Literal
- All Implemented Interfaces:
Annotation
- Enclosing class:
CacheAdd
An annotation literal for the
CacheAdd annotation.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.coherence.cdi.CacheAdd
CacheAdd.Literal -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheAdd.Literalof(long nTtl) Create aCacheAdd.Literal.longttl()The number of milliseconds until the cache entry expires.Methods inherited from class com.oracle.coherence.cdi.AnnotationLiteral
annotationType, equals, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.annotation.Annotation
toString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Literal
public Literal()ConstructCacheAdd.Literalinstance.
-
-
Method Details
-
of
Create aCacheAdd.Literal.- Parameters:
nTtl- the number of milliseconds until the cache entry expires- Returns:
- a
CacheAdd.Literalwith the specified value
-
ttl
public long ttl()The number of milliseconds until the cache entry expires.- Returns:
- the number of milliseconds until the cache entry expires.
-