Tabnine Logo
CacheManager.setMaximumSize
Code IndexAdd Tabnine to your IDE (free)

How to use
setMaximumSize
method
in
org.locationtech.geogig.storage.cache.CacheManager

Best Java code snippets using org.locationtech.geogig.storage.cache.CacheManager.setMaximumSize (Showing top 8 results out of 315)

origin: org.locationtech.geogig/geogig-core

@Override
public void setMaximumSizeMB(double maxSizeMB) {
  final long maxSize = (long) (maxSizeMB * (1024 * 1024));
  setMaximumSize(maxSize);
}
origin: locationtech/geogig

@Override
public void setMaximumSizeMB(double maxSizeMB) {
  final long maxSize = (long) (maxSizeMB * (1024 * 1024));
  setMaximumSize(maxSize);
}
origin: org.locationtech.geogig/geogig-core

@Override
public void setMaximumSizePercent(double percent) {
  long maxSize = getCacheSizePercent(percent);
  setMaximumSize(maxSize);
}
origin: locationtech/geogig

final SharedCache sharedCache() {
  if (_SHARED_CACHE == null) {
    synchronized (this) {
      if (_SHARED_CACHE == null) {
        resolvedMaxCacheSize = resolveDefaultMaxSize();
        setMaximumSize(resolvedMaxCacheSize);
      }
    }
  }
  return _SHARED_CACHE;
}
origin: locationtech/geogig

@Override
public void setMaximumSizePercent(double percent) {
  long maxSize = getCacheSizePercent(percent);
  setMaximumSize(maxSize);
}
origin: org.locationtech.geogig/geogig-core

final SharedCache sharedCache() {
  if (_SHARED_CACHE == null) {
    synchronized (this) {
      if (_SHARED_CACHE == null) {
        resolvedMaxCacheSize = resolveDefaultMaxSize();
        setMaximumSize(resolvedMaxCacheSize);
      }
    }
  }
  return _SHARED_CACHE;
}
origin: org.locationtech.geogig/geogig-core

public @Test void getMaximumSizeMB() {
  final long maxSize = 10 * 1024 * 1024;
  cacheManager.setMaximumSize(maxSize);
  assertEquals(10, cacheManager.getMaximumSizeMB(), 1e-9);
}
origin: locationtech/geogig

public @Test void getMaximumSizeMB() {
  final long maxSize = 10 * 1024 * 1024;
  cacheManager.setMaximumSize(maxSize);
  assertEquals(10, cacheManager.getMaximumSizeMB(), 1e-9);
}
org.locationtech.geogig.storage.cacheCacheManagersetMaximumSize

Popular methods of CacheManager

  • acquire
    Returns a RevObject cache Multiple invocations of this method for the same key are guaranteed to ret
  • getCacheSizePercent
  • getMaximumHeapSize
  • getMaximumSize
  • getMaximumSizeEnvVariable
  • getMaximumSizeSystemProperty
  • getSizeBytes
  • parseCacheSizeArgument
    Format: * {float} between 0 and 0.9: Size as percentage of available heap (e.g. 0 for zero cache
  • release
    Indicates the client code that obtained the ObjectCache through the #acquiremethod does no longer ne
  • resolveDefaultMaxSize
    Resolves the default maximum cache size in bytes. If it's given by a valid value of the GEOGIG_CACHE
  • sharedCache
  • <init>
  • sharedCache,
  • <init>,
  • clear,
  • create,
  • doRelease,
  • getAbsoluteMaximumSize,
  • getAbsoluteMaximumSizeMB,
  • getDefaultSizeMB,
  • getEvictionCount

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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