|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.tspaces.Field
|
+--com.ibm.tspaces.examples.handler.StaleTimestamp
This class demonstrates how to subclass the Field method for exotic matching behavior. It is used to compare a timestamp in a Tuple template against the Tuples in the database and select all the stale tuples.
Field,
TupleSpace, Serialized Form| Fields inherited from class com.ibm.tspaces.Field |
isFormal,
theName,
theType,
theTypeString,
theValue |
| Constructor Summary | |
StaleTimestamp(long newval)
construct a StaleTimestamp, only way to do it for now if via a single long |
|
| Method Summary | |
boolean |
matches(Field f)
match based on the less than criterion. |
| Methods inherited from class com.ibm.tspaces.Field |
assign,
clone,
formal,
getName,
getType,
getValue,
isFormal,
main,
makeField,
name,
setFormal,
setFormal,
setName,
setType,
setValue,
toString,
type,
value |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public StaleTimestamp(long newval)
throws TupleSpaceException
newval - the long| Method Detail |
public boolean matches(Field f)
f - the other field --- the one that we are checking against
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||