Liferay 7.0-ce-b4

com.liferay.portal.kernel.concurrent
Class AsyncBroker<K,V>

java.lang.Object
  extended by com.liferay.portal.kernel.concurrent.AsyncBroker<K,V>

public class AsyncBroker<K,V>
extends Object


Constructor Summary
AsyncBroker()
           
 
Method Summary
 Map<K,NoticeableFuture<V>> getOpenBids()
           
 NoticeableFuture<V> post(K key)
           
 NoticeableFuture<V> post(K key, DefaultNoticeableFuture<V> defaultNoticeableFuture)
           
 NoticeableFuture<V> take(K key)
           
 boolean takeWithException(K key, Throwable throwable)
           
 boolean takeWithResult(K key, V result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncBroker

public AsyncBroker()
Method Detail

getOpenBids

public Map<K,NoticeableFuture<V>> getOpenBids()

post

public NoticeableFuture<V> post(K key)

post

public NoticeableFuture<V> post(K key,
                                DefaultNoticeableFuture<V> defaultNoticeableFuture)

take

public NoticeableFuture<V> take(K key)

takeWithException

public boolean takeWithException(K key,
                                 Throwable throwable)

takeWithResult

public boolean takeWithResult(K key,
                              V result)

Liferay 7.0-ce-b4