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.Literal
of
(long nTtl) Create aCacheAdd.Literal
.long
ttl()
The number of milliseconds until the cache entry expires.Methods inherited from class com.oracle.coherence.cdi.AnnotationLiteral
annotationType, equals, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.annotation.Annotation
toString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Literal
public Literal()ConstructCacheAdd.Literal
instance.
-
-
Method Details
-
of
Create aCacheAdd.Literal
.- Parameters:
nTtl
- the number of milliseconds until the cache entry expires- Returns:
- a
CacheAdd.Literal
with 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.
-