Package org.n52.iceland.util
Class LazyClosingThreadSafeProducer<T>
- java.lang.Object
-
- org.n52.iceland.util.LazyClosingThreadSafeProducer<T>
-
- All Implemented Interfaces:
com.google.common.base.Supplier<T>,Supplier<T>,javax.inject.Provider<T>,Destroyable,Producer<T>
public abstract class LazyClosingThreadSafeProducer<T> extends Object implements Producer<T>, Destroyable
-
-
Constructor Summary
Constructors Constructor Description LazyClosingThreadSafeProducer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidclose(T object)protected abstract Tcreate()voiddestroy()Tget()protected voidsetRecreate()
-
-
-
Method Detail
-
setRecreate
protected void setRecreate()
-
get
public T get() throws ConfigurationError
-
destroy
public void destroy()
- Specified by:
destroyin interfaceDestroyable
-
create
protected abstract T create() throws ConfigurationError
- Throws:
ConfigurationError
-
close
protected abstract void close(T object)
-
-