congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ThreadLocalDirectory.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.yahoo.concurrent.ThreadLocalDirectory
constructor

Best Java code snippets using com.yahoo.concurrent.ThreadLocalDirectory.<init> (Showing top 3 results out of 315)

origin: com.yahoo.vespa/simplemetrics

public MockReceiver() {
  this(new ThreadLocalDirectory<>(new MetricUpdater()));
}
/** gathers all data since last snapshot */
origin: com.yahoo.vespa/simplemetrics

private MetricManager(ManagerConfig settings, Updater<Bucket, Sample> updater) {
  log.log(LogLevel.CONFIG, "setting up simple metrics gathering." +
        " reportPeriodSeconds=" + settings.reportPeriodSeconds() +
        ", pointsToKeepPerMetric=" + settings.pointsToKeepPerMetric());
  metricsCollection = new ThreadLocalDirectory<>(updater);
  final AtomicReference<Bucket> currentSnapshot = new AtomicReference<>(null);
  executor = new ScheduledThreadPoolExecutor(1);
  // Fixed rate, not fixed delay, is it is not too important that each
  // bucket has data for exactly one second, but one should strive for
  // this.buffer to contain data for as close a period to the report
  // interval as possible
  executor.scheduleAtFixedRate(new MetricAggregator(metricsCollection, currentSnapshot, settings), 1, 1, TimeUnit.SECONDS);
  receiver = new MetricReceiver(metricsCollection, currentSnapshot);
}
origin: com.yahoo.vespa/container-search

static ThreadLocalDirectory<Deque<QueryRatePerSecond>, Long> createDirectory() {
  return new ThreadLocalDirectory<>(new QueryRate());
}
com.yahoo.concurrentThreadLocalDirectory<init>

Popular methods of ThreadLocalDirectory

  • update
    Update a value with a given thread local instance. If a producer thread is to insert a series of dat
  • fetch
    Fetch the current set of sampled data, and reset state of all thread local instances. The producer t
  • getOrCreateLocal
  • put

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Github Copilot alternatives
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