Interface CTSWorkerQuery
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
CTSWorkerBaseQuery,CTSWorkerPastExpiryDateQuery,MaxSessionTimeExpiredQuery,SessionIdleTimeExpiredQuery
public interface CTSWorkerQuery extends AutoCloseable
Defines the ability to perform a paged query. This will be used by aCTSWorkerTaskto identify all CTS tokens which will be processed by the task.- See Also:
CTSWorkerManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Query consumers should call this method if they choose to stop processing result pages beforenextPage()returns null.Collection<PartialToken>nextPage()Repeated calls will return further results from query.
-
-
-
Method Detail
-
nextPage
Collection<PartialToken> nextPage() throws CoreTokenException
Repeated calls will return further results from query.- Returns:
- Non empty collection of
PartialTokento be processed by theCTSWorkerTask. Null indicates there are no further results matching the query. - Throws:
CoreTokenException- If there was any unexpected error during processing.
-
close
void close()
Query consumers should call this method if they choose to stop processing result pages beforenextPage()returns null.This allows the query to release resources such as open connections.
- Specified by:
closein interfaceAutoCloseable
-
-