org.openjena.atlas.lib
Class PoolSync<T>
java.lang.Object
org.openjena.atlas.lib.PoolSync<T>
- All Implemented Interfaces:
- Pool<T>
public class PoolSync<T>
- extends Object
- implements Pool<T>
Synchronization wrapper for a pool
Method Summary |
static
|
create(Pool<T> pool)
|
T |
get()
Get an item from the pool - return null if the pool is empty |
boolean |
isEmpty()
|
void |
put(T item)
|
PoolSync
public PoolSync(Pool<T> pool)
create
public static <T> Pool<T> create(Pool<T> pool)
put
public final void put(T item)
- Specified by:
put
in interface Pool<T>
get
public final T get()
- Description copied from interface:
Pool
- Get an item from the pool - return null if the pool is empty
- Specified by:
get
in interface Pool<T>
isEmpty
public final boolean isEmpty()
- Specified by:
isEmpty
in interface Pool<T>
Licenced under the Apache License, Version 2.0