/** * Expose the thread local for the running thread, for use in conjunction * with update(SAMPLE, LocalInstance<AGGREGATOR, SAMPLE>). * * @return the current thread's local instance */ public LocalInstance<AGGREGATOR, SAMPLE> getLocalInstance() { return getOrCreateLocal(); }
/** * Input data from a producer thread. * * @param x * the data to insert */ public void update(SAMPLE x) { update(x, getOrCreateLocal()); }