public class DataExchange<K,V> extends Object
Allows data providers and consumers to exchange data described by a shared key value. Data can be
Constructor and Description |
---|
DataExchange(TimeProvider timeProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
boolean |
put(K key,
V value) |
V |
retrieve(K key,
long time,
TimeUnit timeUnit) |
public DataExchange(TimeProvider timeProvider)
public V retrieve(K key, long time, TimeUnit timeUnit) throws InterruptedException
InterruptedException
public boolean isEmpty()
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.