net.sf.asyncobjects.util
Interface AQueue<T>

Type Parameters:
T - element type in the queue
All Superinterfaces:
AsyncObject
All Known Implementing Classes:
Queue

public interface AQueue<T>
extends AsyncObject

Object queue service.


Method Summary
 Promise<T> get()
          Get object from the queue
 Promise<Void> put(T o)
          Put object from the queue
 
Methods inherited from interface net.sf.asyncobjects.AsyncObject
dereference, isImmediate
 

Method Detail

get

Promise<T> get()
Get object from the queue

Returns:
got object

put

Promise<Void> put(T o)
Put object from the queue

Parameters:
o - an object to put
Returns:
a promise that resolves to nul lwhen object is accpeted in the queue


Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.