org.indi.reactor
Interface QueueHandler<T>

Type Parameters:
T - The type of Object to be put into the Queue
All Known Implementing Classes:
BasicQueueHandler

public interface QueueHandler<T>

A callback handler. To be called by the reactor whenever there is an element in is found in the queue.

Author:
Dirk Hünniger

Method Summary
 java.util.Queue<T> getQueue()
           
 void onRead(T input)
          Called by the reactor whenever an element is found in the queue
 

Method Detail

getQueue

java.util.Queue<T> getQueue()
Returns:
The Queue the Handler is associated with

onRead

void onRead(T input)
Called by the reactor whenever an element is found in the queue

Parameters:
The - head element found in the queue.


Copyright © 2008. All Rights Reserved.