mandala.jacob
Interface ActiveMap

All Superinterfaces:
java.util.Map
All Known Subinterfaces:
RemoteActiveMap
All Known Implementing Classes:
ActiveMapImpl, RemoteActiveMapProxy, RMIActiveMap

public interface ActiveMap
extends java.util.Map

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).

Version:
$Revision: 1.13 $
Author:
eipi
See Also:
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

call

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()

Parameters:
key - The key associated with the stored object.
futureServer - A FutureServer object.
Returns:
the object you may used for cancelation
Throws:
java.util.NoSuchElementException - if no object is associated to the given key.
See Also:
FutureServer, MethodInvoker


Mandala help mailing list