javax.cache
Class CacheConfiguration.Duration

java.lang.Object
  extended by javax.cache.CacheConfiguration.Duration
Enclosing interface:
CacheConfiguration<K,V>

public static class CacheConfiguration.Duration
extends java.lang.Object


Field Summary
static CacheConfiguration.Duration ETERNAL
           
 
Constructor Summary
CacheConfiguration.Duration(java.util.concurrent.TimeUnit timeUnit, long timeToLive)
           
 
Method Summary
 long getTimeToLive()
           
 java.util.concurrent.TimeUnit getTimeUnit()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ETERNAL

public static final CacheConfiguration.Duration ETERNAL
Constructor Detail

CacheConfiguration.Duration

public CacheConfiguration.Duration(java.util.concurrent.TimeUnit timeUnit,
                                   long timeToLive)
Method Detail

getTimeUnit

public java.util.concurrent.TimeUnit getTimeUnit()

getTimeToLive

public long getTimeToLive()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object