Codota Logo
ObjectPool.flush
Code IndexAdd Codota to your IDE (free)

How to use
flush
method
in
org.mulgara.store.xa.ObjectPool

Best Java code snippets using org.mulgara.store.xa.ObjectPool.flush (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.openrdf.mulgara/mulgara-util-xa

/**
 * Removes a reference to this object pool.
 * Clears the pool if it is no longer in use.
 */
public void release() {
 assert refCount > 0;
 if (--refCount == 0) {
  flush(true);
 }
}
origin: org.openrdf.mulgara/mulgara-util-xa

/**
 * Push all objects out of this pool and into the next (root) pool.
 */
public void flush() {
 flush(false);
}
origin: org.openrdf.mulgara/mulgara-store-stringpool-xa

public synchronized void release() {
 try {
  if (token != null) {
   token.release();
  }
  if (readerObjectPool != null) {
   readerObjectPool.flush();
   readerObjectPool.release();
  }
 } finally {
  phase = null;
  token = null;
  readerObjectPool = null;
 }
}
origin: org.openrdf.mulgara/mulgara-store-nodepool-xa

objectPool.flush();
origin: org.openrdf.mulgara/mulgara-store-stringpool-xa

writerObjectPool.flush();
org.mulgara.store.xaObjectPoolflush

Javadoc

Push all objects out of this pool and into the next (root) pool.

Popular methods of ObjectPool

  • newInstance
    Factory method to build a new local object pool.
  • release
    Removes a reference to this object pool. Clears the pool if it is no longer in use.
  • incRefCount
    Increments the number of times this pool is referred to.
  • <init>
    Constructs an object pool.
  • get
    Gets a pooled object of a given type and size from this pool.
  • init
    Initialize the references for this pool.
  • newKeyInstance
    Create a new key, based on a given type and size.
  • newObjectStackInstance
    Creates a new ObjectStack.
  • put
    Adds an object into the pool.

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Option (scala)
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