public class ThreadConsumer
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable
| Constructor and Description |
|---|
ThreadConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposal of the component during which he handle the closue of the
child thread we have establshed during the initialization stage.
|
void |
initialize()
Initialization of the component by the container during which we
establish a child thread by passing a runnable object to the thread pool.
|
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
Servicing of the component by the container during which the
component aquires the ThreadManager service.
|
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceablemanager - the thread managerorg.apache.avalon.framework.service.ServiceException - if the thread manager service is
unresolvablepublic void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.Exception - if an initialization stage error occurspublic void dispose()
dispose in interface org.apache.avalon.framework.activity.DisposableCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.