|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.resilientedge.jockey.peerbridge.PBFindMarker
Marks a current find query for status inqueries.
Field Summary | |
static int |
FIND_COMPLETE
state indicating that the find has completed |
static int |
FIND_TIMEOUT
state indicating that the find operation timed out |
static int |
FINDING
state indicating that the find is in progress |
Constructor Summary | |
PBFindMarker()
No-argument constructor. |
Method Summary | |
int |
compare(PBFindMarker other)
Returns zero if the other FindMarker is the same as this FindMarker. |
boolean |
getFindComplete()
Returns true if the find is complete |
int |
getFoundSoFar()
Returns the count of find matches so far. |
int |
getStatus()
Returns a status code corresponding to one of the FIND_ constants. |
int |
getTimeLeft()
Returns the amount of time left in this find attempt. |
void |
setFindComplete(boolean complete)
Set the completion state. |
void |
setFoundSoFar(int matches)
Update the number of find matches so far. |
void |
setStatus(int state)
Update the find state. |
void |
setTimeLeft(int timeLeft)
Set the amount of time left in this find attempt. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FINDING
public static final int FIND_COMPLETE
public static final int FIND_TIMEOUT
Constructor Detail |
public PBFindMarker()
Method Detail |
public void setStatus(int state)
state
- new find statepublic void setFoundSoFar(int matches)
matches
- new number of find matchespublic void setFindComplete(boolean complete)
complete
- the new completion statepublic void setTimeLeft(int timeLeft)
timeLeft
- the number of seconds left in this searchpublic int getStatus()
public int getFoundSoFar()
public boolean getFindComplete()
public int getTimeLeft()
public int compare(PBFindMarker other)
other
- marker to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |