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

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

Best Java code snippets using org.mulgara.store.xa.ObjectPool.newInstance (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

/**
 * Factory method to build a new root object pool.
 *
 * @return The new object pool.
 */
public static ObjectPool newInstance() {
 return newInstance(SHARED_POOL);
}
origin: org.openrdf.mulgara/mulgara-store-stringpool-xa

public synchronized void refresh() {
 if (readerObjectPool == null) {
  readerObjectPool = ObjectPool.newInstance();
 }
 synchronized (committedPhaseLock) {
  Phase committedPhase = committedPhaseToken.getPhase();
  if (phase != committedPhase) {
   if (token != null) {
    token.release();
   }
   phase = committedPhase;
   token = phase.use();
  }
 }
}
origin: org.openrdf.mulgara/mulgara-store-nodepool-xa

objectPool = ObjectPool.newInstance();
origin: org.openrdf.mulgara/mulgara-store-stringpool-xa

writerObjectPool = ObjectPool.newInstance();
origin: org.openrdf.mulgara/mulgara-store-stringpool-xa

ObjectPool objectPool = ObjectPool.newInstance();
AVLNode node = avlFilePhase.getRootNode(objectPool);
if (node == null) {
org.mulgara.store.xaObjectPoolnewInstance

Javadoc

Factory method to build a new root object pool.

Popular methods of ObjectPool

  • flush
    Push all objects into the next pool, clearing this 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