@ThreadSafe public class ConcurrentOperationMapImpl<K,R> extends Object implements ConcurrentOperationMap<K,R>
| Constructor and Description |
|---|
ConcurrentOperationMapImpl()
Constructor for ConcurrentOperationMapImpl.
|
| Modifier and Type | Method and Description |
|---|---|
R |
runOperation(K key,
Callable<R> operation)
The operation <R> will be keyed on the name <K>.
|
public ConcurrentOperationMapImpl()
public final R runOperation(K key, Callable<R> operation) throws ExecutionException
runOperation in interface ConcurrentOperationMap<K,R>key - the key, like any map key this should be an immutable object
that correctly implements Object.hashCode() and
Object.equals(Object)operation - is the operation to execute whose result will be
accessible to any concurrent callers with the same key.ExecutionException - if the callable generated a
checked exception, otherwise a runtime exception or error will be thrownCopyright © 2016 Atlassian. All rights reserved.