org.indi.reactor
Class BasicQueueHandler

java.lang.Object
  extended by org.indi.reactor.BasicQueueHandler
All Implemented Interfaces:
QueueHandler

public class BasicQueueHandler
extends java.lang.Object
implements QueueHandler

Simple implementation of the QueueHandeler interface

Author:
dirk

Constructor Summary
BasicQueueHandler(java.util.Queue<java.lang.Object> queue)
          Class constructor
 
Method Summary
 java.util.Queue<java.lang.Object> getQueue()
           
 void onRead(java.lang.Object input)
          Called by the reactor whenever an element is found in the queue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicQueueHandler

public BasicQueueHandler(java.util.Queue<java.lang.Object> queue)
Class constructor

Parameters:
queue - The queue containing the elements to be read
Method Detail

getQueue

public java.util.Queue<java.lang.Object> getQueue()
Specified by:
getQueue in interface QueueHandler
Returns:
The Queue the Handler is associated with
See Also:
QueueHandler.getQueue()

onRead

public void onRead(java.lang.Object input)
Description copied from interface: QueueHandler
Called by the reactor whenever an element is found in the queue

Specified by:
onRead in interface QueueHandler
See Also:
QueueHandler.onRead(java.lang.Object)


Copyright © 2008. All Rights Reserved.