com.croftsoft.core.util.queue
Class QueuePuller

java.lang.Object
  extended by com.croftsoft.core.util.queue.QueuePuller
All Implemented Interfaces:
Commissionable, Destroyable, Initializable, Lifecycle, Resumable, Startable, Stoppable

public final class QueuePuller
extends Object
implements Lifecycle

Pulls objects out of the queue in a separate thread.

Since:
1998-11-23
Version:
2003-05-27
Author:
David Wallace Croft

Constructor Summary
QueuePuller(Queue queue, Consumer consumer)
           
 
Method Summary
 boolean append(Object o)
           
 void destroy()
           
 void init()
           
 Object replace(Object o)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueuePuller

public QueuePuller(Queue queue,
                   Consumer consumer)
Method Detail

init

public void init()
Specified by:
init in interface Initializable

start

public void start()
Specified by:
start in interface Startable

stop

public void stop()
Specified by:
stop in interface Stoppable

destroy

public void destroy()
Specified by:
destroy in interface Destroyable

append

public boolean append(Object o)

replace

public Object replace(Object o)

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)