com.sun.jini.outrigger
Interface IfExistsWatcher

All Known Implementing Classes:
ReadIfExistsWatcher, TakeIfExistsWatcher, TransactableReadIfExistsWatcher

interface IfExistsWatcher

Mix-in interface for QueryWatchers associated with ifExists queries.


Method Summary
 void caughtUp()
          Called after the last transition that was recored during the initial search has been processed.
 boolean isLockedEntrySetEmpty()
          If the query has been resolved by the locked entry set becoming empty returns true, otherwise return false.
 

Method Detail

isLockedEntrySetEmpty

boolean isLockedEntrySetEmpty()
If the query has been resolved by the locked entry set becoming empty returns true, otherwise return false.

Returns:
true if locked entry set associated with this query is empty.
Throws:
IllegalStateException - if the query has not be resolved.

caughtUp

void caughtUp()
Called after the last transition that was recored during the initial search has been processed. This means that any entry that replaced an entry that was removed before the initial search had gotten to it has been seen by the watcher. The query should now be resolved with a null if the locked entry set goes empty.



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.