Codota Logo
ExpirableCache.values
Code IndexAdd Codota to your IDE (free)

How to use
values
method
in
com.ebay.cloud.cms.utils.ExpirableCache

Best Java code snippets using com.ebay.cloud.cms.utils.ExpirableCache.values (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: eBay/YiDB

public List<MetaClass> getMetaClassesFromCache() {
  return this.nameCache.values();
}

origin: eBay/YiDB

@Override
public List<Repository> getRepositories(AccessType type) {
  List<Repository> allRepos = cache.values();
  List<Repository> result = new ArrayList<Repository>();
  for (Repository repo : allRepos) {
    if (repo.getAccessType() == type) {
      result.add(repo);
    }
  }
  return result;
}

origin: eBay/YiDB

@Override
public List<Repository> getRepositories(MetadataContext ctx) {
  MetadataContext context = ctx != null ? ctx : new MetadataContext();
  if (!context.isRefreshRepsitory()) {
    return cache.values();
  }
  ExpirableCache<Repository> newCache = new ExpirableCache<Repository>(maxCacheSize, cacheExpiredTime);
  BasicDBObject query = new BasicDBObject();
  query.put(Repository.STATE_FIELD, Repository.StateEnum.normal.toString());
  List<Repository> result = new ArrayList<Repository>();
  DBCursor cursor = repoCollection.find(query);
  while (cursor.hasNext()) {
    DBObject object = cursor.next();
    Repository r = repositoryConverter.fromBson(object, Repository.class);
    createServiceForRepository(r);
    result.add(r);
    newCache.putObject(r.getRepositoryName(), r);
  }
  cache = newCache;
  return result;
}
origin: eBay/YiDB

@Override
public void setHistoryService(IMetadataHistoryService historyService) {
  this.historyService = historyService;
  List<Repository> repositories = cache.values();
  for(Repository repo : repositories) {
    IMetadataService metaService = repo.getMetadataService();
com.ebay.cloud.cms.utilsExpirableCachevalues

Popular methods of ExpirableCache

  • <init>
  • deleteObject
  • getObject
  • putObject
  • checkNotNull
  • cleanup

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now