|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TupleContainer
Implemented by classes that store InternalTuples behaving themselves like tuplespaces. Due the architecture of the service all operations are non blocking.
Method Summary | |
---|---|
void |
add(InternalTuple t)
Adds an InternalTuple to the container |
boolean |
isEmpty()
Checks if the container is empty |
InternalTuple |
lookup(InternalTuple pattern)
Looks up a tuples that match the given template using the associative matching |
InternalTuple[] |
lookupAll(InternalTuple pattern)
Looks up all the tuples that match the given template using the associative matching |
InternalTuple |
remove(InternalTuple pattern)
Removes a the tuple that match the given template using the associative matching |
InternalTuple[] |
removeAll(InternalTuple pattern)
Removes all the tuples that match the given template using the associative matching |
int |
size()
Gets the number of tuple stored |
java.util.Collection |
tuples()
Gets a collection of all the tuple stored |
Method Detail |
---|
void add(InternalTuple t)
t
- the tupleInternalTuple[] lookupAll(InternalTuple pattern)
pattern
- the template
InternalTuple lookup(InternalTuple pattern)
pattern
- the template
InternalTuple remove(InternalTuple pattern)
pattern
- the template
InternalTuple[] removeAll(InternalTuple pattern)
pattern
- the template
int size()
boolean isEmpty()
java.util.Collection tuples()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |