eu.emi.security.authn.x509.helpers
Class CachedElement<T>

java.lang.Object
  extended by eu.emi.security.authn.x509.helpers.CachedElement<T>

public class CachedElement<T>
extends Object

Cached element is a container of an arbitrary object, enriched with a creation timestamp.

Author:
K. Benedyczak

Constructor Summary
CachedElement(T element)
           
 
Method Summary
 long getCreationTs()
           
 T getElement()
           
 boolean isExpired(long ttl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedElement

public CachedElement(T element)
Method Detail

getCreationTs

public long getCreationTs()

getElement

public T getElement()

isExpired

public boolean isExpired(long ttl)


Copyright © 2012-2014 European Middleware Initiative. All Rights Reserved.