Class CacheAdd.Literal

java.lang.Object
com.oracle.coherence.cdi.AnnotationLiteral<CacheAdd>
com.oracle.coherence.cdi.CacheAdd.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
CacheAdd

public static class CacheAdd.Literal extends AnnotationLiteral<CacheAdd> implements CacheAdd
An annotation literal for the CacheAdd annotation.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • of

      public static CacheAdd.Literal of(long nTtl)
      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.