public class MaxSessionTimeExpiredProcess extends CTSWorkerBaseProcess
Constructor and Description |
---|
MaxSessionTimeExpiredProcess(org.forgerock.openam.cts.worker.process.SessionExpiryBatchHandler timeoutHandler,
Debug debug)
Generates a new
CTSWorkerDeleteProcess which can be used across multiple CTSWorkerTask ,
with various CTSWorkerQuery and CTSWorkerFilter . |
Modifier and Type | Method and Description |
---|---|
protected CountDownLatch |
handleBatch(Collection<PartialToken> batch)
Hook method allowing subclasses to define the actual work to be carried out by this
CTSWorkerProcess . |
protected void |
handleFailed(Exception exception)
Hook method called when
CTSWorkerBaseProcess.handle(org.forgerock.openam.cts.impl.query.worker.CTSWorkerQuery, org.forgerock.openam.cts.worker.CTSWorkerFilter) fails to complete due to an error. |
protected void |
handleSucceeded(org.apache.commons.lang.time.StopWatch queryStopWatch,
org.apache.commons.lang.time.StopWatch waitingStopWatch,
long total)
Hook method called when
CTSWorkerBaseProcess.handle(org.forgerock.openam.cts.impl.query.worker.CTSWorkerQuery, org.forgerock.openam.cts.worker.CTSWorkerFilter) completes successfully. |
handle, toString
@Inject public MaxSessionTimeExpiredProcess(@Named(value="MaxSessionTimeExpired") org.forgerock.openam.cts.worker.process.SessionExpiryBatchHandler timeoutHandler, @Named(value="amCoreTokenService") Debug debug)
CTSWorkerDeleteProcess
which can be used across multiple CTSWorkerTask
,
with various CTSWorkerQuery
and CTSWorkerFilter
.protected CountDownLatch handleBatch(Collection<PartialToken> batch) throws CoreTokenException
CTSWorkerBaseProcess
CTSWorkerProcess
.handleBatch
in class CTSWorkerBaseProcess
batch
- the filtered page of query results to be processed.batch
has been processed.CoreTokenException
- if an exception occurs while handling the batch.protected void handleSucceeded(org.apache.commons.lang.time.StopWatch queryStopWatch, org.apache.commons.lang.time.StopWatch waitingStopWatch, long total)
CTSWorkerBaseProcess
CTSWorkerBaseProcess.handle(org.forgerock.openam.cts.impl.query.worker.CTSWorkerQuery, org.forgerock.openam.cts.worker.CTSWorkerFilter)
completes successfully.
This method can be overridden by subclasses for monitoring or debug logging.
handleSucceeded
in class CTSWorkerBaseProcess
queryStopWatch
- timing of the query and task spawning step.waitingStopWatch
- timing of the task completion wait time.total
- number of query results which matched the filter and were processed.protected void handleFailed(Exception exception)
CTSWorkerBaseProcess
CTSWorkerBaseProcess.handle(org.forgerock.openam.cts.impl.query.worker.CTSWorkerQuery, org.forgerock.openam.cts.worker.CTSWorkerFilter)
fails to complete due to an error.
This method can be overridden by subclasses for debug logging.
handleFailed
in class CTSWorkerBaseProcess
exception
- the exception which prevented the call to CTSWorkerBaseProcess.handle(org.forgerock.openam.cts.impl.query.worker.CTSWorkerQuery, org.forgerock.openam.cts.worker.CTSWorkerFilter)
from completing successfully.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.