org.openjena.atlas.lib
Class PoolSync<T>

java.lang.Object
  extended by org.openjena.atlas.lib.PoolBase<T>
      extended by org.openjena.atlas.lib.PoolSync<T>
All Implemented Interfaces:
Pool<T>

public class PoolSync<T>
extends PoolBase<T>

Synchronization wrapper for a pool


Constructor Summary
PoolSync()
           
 
Method Summary
 T get()
          Get an item from the pool - return null if the pool is empty
 boolean isEmpty()
           
 void put(T item)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolSync

public PoolSync()
Method Detail

put

public final void put(T item)
Specified by:
put in interface Pool<T>
Overrides:
put in class PoolBase<T>

get

public final T get()
Description copied from class: PoolBase
Get an item from the pool - return null if the pool is empty

Specified by:
get in interface Pool<T>
Overrides:
get in class PoolBase<T>

isEmpty

public final boolean isEmpty()
Specified by:
isEmpty in interface Pool<T>
Overrides:
isEmpty in class PoolBase<T>


Copyright © 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP