congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SoftExpiringCache$CachedObject
Code IndexAdd Tabnine to your IDE (free)

How to use
SoftExpiringCache$CachedObject
in
org.apache.shindig.common.cache

Best Java code snippets using org.apache.shindig.common.cache.SoftExpiringCache$CachedObject (Showing top 5 results out of 315)

origin: org.wso2.org.apache.shindig/shindig-common

/**
 * Retrieve an element from the cache by key. If there is no such element
 * for that key in the cache, or if the element has timed out, null is returned.
 * @param key Key whose element to look up.
 * @return Element in the cache, if present and not timed out.
 */
public CachedObject<V> getElement(K key) {
 V value = cache.getElement(key);
 if (value == null) {
  return null;
 }
 Long expiration = expirationTimes.get(value);
 if (expiration == null) {
  return null;
 }
 return new CachedObject<V>(value, expiration < timeSource.currentTimeMillis());
}
origin: apache/shindig

/**
 * Retrieve an element from the cache by key. If there is no such element
 * for that key in the cache, or if the element has timed out, null is returned.
 * @param key Key whose element to look up.
 * @return Element in the cache, if present and not timed out.
 */
public CachedObject<V> getElement(K key) {
 V value = cache.getElement(key);
 if (value == null) {
  return null;
 }
 Long expiration = expirationTimes.get(value);
 if (expiration == null) {
  return null;
 }
 return new CachedObject<V>(value, expiration < timeSource.currentTimeMillis());
}
origin: com.lmco.shindig/shindig-common

/**
 * Retrieve an element from the cache by key. If there is no such element
 * for that key in the cache, or if the element has timed out, null is returned.
 * @param key Key whose element to look up.
 * @return Element in the cache, if present and not timed out.
 */
public CachedObject<V> getElement(K key) {
 V value = cache.getElement(key);
 if (value == null) {
  return null;
 }
 Long expiration = expirationTimes.get(value);
 if (expiration == null) {
  return null;
 }
 return new CachedObject<V>(value, expiration < timeSource.currentTimeMillis());
}
origin: org.apache.shindig/shindig-common

/**
 * Retrieve an element from the cache by key. If there is no such element
 * for that key in the cache, or if the element has timed out, null is returned.
 * @param key Key whose element to look up.
 * @return Element in the cache, if present and not timed out.
 */
public CachedObject<V> getElement(K key) {
 V value = cache.getElement(key);
 if (value == null) {
  return null;
 }
 Long expiration = expirationTimes.get(value);
 if (expiration == null) {
  return null;
 }
 return new CachedObject<V>(value, expiration < timeSource.currentTimeMillis());
}
origin: org.gatein.shindig/shindig-common

/**
 * Retrieve an element from the cache by key. If there is no such element
 * for that key in the cache, or if the element has timed out, null is returned.
 * @param key Key whose element to look up.
 * @return Element in the cache, if present and not timed out.
 */
public CachedObject<V> getElement(K key) {
 V value = cache.getElement(key);
 if (value == null) {
  return null;
 }
 Long expiration = expirationTimes.get(value);
 if (expiration == null) {
  return null;
 }
 return new CachedObject<V>(value, expiration < timeSource.currentTimeMillis());
}
org.apache.shindig.common.cacheSoftExpiringCache$CachedObject

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • getContentResolver (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Permission (java.security)
    Legacy security code; do not use.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JLabel (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now