RESULT - the type of the expected results.public interface ISQuery<RESULT>
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.
| Modifier and Type | Method and Description |
|---|---|
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.
|
long getTTL()
void setTTL(long ttl)
ttl - the time-to-live.String getExpression()
void setExpression(String exp)
exp - the expression.Copyright © 2015. All Rights Reserved.