|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An active map is a map with threads activity over its stored objects.
Activity is provided by the method call(Object key, Method method,
Object[] args, FutureServer future)
.
ActiveMapImpl
,
FutureServer
,
ExceptionHandler
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Method Summary | |
Cancelable |
call(java.lang.Object key,
FutureServer futureServer)
Allows objects to do an asynchronous call on a method of the object associated with the given key. |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
public Cancelable call(java.lang.Object key, FutureServer futureServer)
Allows objects to do an asynchronous call on a method of the object associated with the given key.
Invokes the method returned by futureServer.getMethod()
on the object maps to the specified key
(if it exists).
The futureServer
object is also used to sets the result
once the method returns either normally or abruptly (exception) with the
method futureServer.setResult()
The futureServer
object given is used as specified in
MethodInvoker.run()
key
- The key associated with the stored object.futureServer
- A FutureServer
object.
java.util.NoSuchElementException
- if no object is
associated to the given key.FutureServer
,
MethodInvoker
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |