public class AsyncBroker<K,V>
extends Object
Constructor and Description |
---|
AsyncBroker() |
Modifier and Type | Method and Description |
---|---|
Map<K,NoticeableFuture<V>> |
getOpenBids() |
NoticeableFuture<V> |
post(K key) |
NoticeableFuture<V> |
post(K key,
boolean[] newMarker) |
NoticeableFuture<V> |
take(K key) |
boolean |
takeWithException(K key,
Throwable throwable) |
boolean |
takeWithResult(K key,
V result) |
public Map<K,NoticeableFuture<V>> getOpenBids()
public NoticeableFuture<V> post(K key)
public NoticeableFuture<V> post(K key, boolean[] newMarker)
public NoticeableFuture<V> take(K key)
public boolean takeWithException(K key, Throwable throwable)