|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
RESULT - the type of the expected results.public interface ISQuery<RESULT>
Defines the minimal behaviour of queries accepted by ISClients:
they contain their textual expression and specify a time-to-live for their results.
The definition is parametric with respect to the type of the expected results.
This is not required for the interface, though it may be for its implementations.
In addition, it allows static typing of the ISClient interface.
| Method Summary | |
|---|---|
String |
getExpression()
Returns the textual expression of the query. |
long |
getTTL()
Returns the time-to-live of the results of the query. |
void |
setExpression(String exp)
Sets the textual expression of the query. |
void |
setTTL(long ttl)
Sets the time-to-live of the results of the query. |
| Method Detail |
|---|
long getTTL()
void setTTL(long ttl)
ttl - the time-to-live.String getExpression()
void setExpression(String exp)
exp - the expression.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||