|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The RequestSet
interface represents a data structure
containing associations between request identifiers and listeners
interested in the responses returned by those ants.
RequestSet
is one of the components of a nest; the
other are Manager
), Trail
,
Storage
and Gate
.
Field Summary | |
static String |
NAME
Identifier used in the configuration files |
Method Summary | |
void |
add(RequestId key,
ResponseListener listener)
Adds an association between a key and the listener interested in the responses returned by this ant. |
boolean |
returnResources(RequestId key,
Resource[] resources)
Returns the specified resources to the listener associated to the given key |
Methods inherited from interface anthill.util.Clearable |
clear |
Field Detail |
public static final String NAME
Method Detail |
public void add(RequestId key, ResponseListener listener)
key
- the key that will be used later to obtain the
listenerlistener
- the listener which will be notified when
a response is availablepublic boolean returnResources(RequestId key, Resource[] resources)
key
- the key that is used to obtain listenerresources
- the resources found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |