Package org.vibur.objectpool.util
Interface ThreadedPoolReducer
- All Known Implementing Classes:
SamplingPoolReducer
public interface ThreadedPoolReducer
The pool reducers implementing this interface will create one daemon service thread
which will be started when the reducer's
start() method is called, and will
be alive until the terminate() method is called or until the calling application
exits.- Author:
- Simeon Malchev
-
Method Details
-
start
void start()Starts this pool reducer, which starts its underlying daemon thread.- Throws:
IllegalThreadStateException- if this pool reducer is started more then once
-
getState
Thread.State getState()Returns the state of the underlying thread. -
terminate
void terminate()Terminates this pool reducer, which terminates its underlying daemon thread. Once terminated the pool reducer cannot be more revived.
-