Interface PersistentQueryHandle
- All Known Implementing Classes:
CommunityPersistentQueryHandle
,DoNothingHandle
,EnterprisePersistentQueryHandle
public interface PersistentQueryHandle
This interface defines a local handle to a remote Persistent Query. The query may be an Enterprise worker, or a
Community worker.
-
Method Details
-
getVersion
long getVersion()Get the currently running version of the Persistent Query.- Returns:
- the version of the running query
-
getState
PersistentQueryState getState()Get the current state object for the Persistent Query.- Returns:
- the current state
-
start
void start()Start the worker. -
shutdown
Shutdown the worker, if it is running.- Parameters:
lastAuthenticatedUser
- the authenticating user requesting the shutdownlastEffectiveUser
- the effective user requesting the shuutdown
-