|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.util.concurrent.ConcurrentOperationMapImpl<K,R>
@ThreadSafe public class ConcurrentOperationMapImpl<K,R>
Constructor Summary | |
---|---|
ConcurrentOperationMapImpl()
|
Method Summary | |
---|---|
R |
runOperation(K key,
java.util.concurrent.Callable<R> operation)
The operation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConcurrentOperationMapImpl()
Method Detail |
---|
public R runOperation(K key, java.util.concurrent.Callable<R> operation) throws java.util.concurrent.ExecutionException
ConcurrentOperationMap
runOperation
in interface ConcurrentOperationMap<K,R>
key
- the key, like any map key this should be an immutable object
that correctly implements #hashCode()
and #equals(Object)
operation
- is the operation to execute whose result will be
accessible to any concurrent callers with the same key.
java.util.concurrent.ExecutionException
- if the callable generated a checked exception,
otherwise a runtime exception or error will be thrown
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |