public interface CmCustomQueueSweep extends RepositoryObject, CmQueueSweep
SweepActionHandler
interface, which performs a
custom action on the objects. When the handler successfully processes a queue item,
the sweep service automatically deletes the item from the queue table.
Queue items that fail to process are automatically retried up to a configurable number of times.
A queue sweep can only process subclass instances of CmAbstractQueueEntry
.
For a custom queue sweep to work, you must create a subclass of CmAbstractQueueEntry
,
and specify that subclass in the SweepTarget property of the custom queue sweep.
To associate an implemented action handler with a custom queue sweep,
you set a CmSweepAction
on the custom queue sweep.
A typical use case for a queued background operation is to control the flow of work to a scarce resource that is too slow to perform its operation within the context of an on-line transaction. A shared printer servicing a client application is one such case. An application that sends requests directly to the printer could back up the printer with requests. By implementing a custom queue sweep, you could manage the delivery of requests to the printer at an even rate. Instead of sending requests directly to the printer, the application would leverage the custom queue sweep, which would pass queue objects (printer requests) to a sweep action handler. The handler (and the supporting sweep service) would control the flow of requests to the printer.
Modifier and Type | Method and Description |
---|---|
CmSweepAction |
get_SweepAction()
Returns the value of the SweepAction property.
|
void |
set_SweepAction(CmSweepAction value)
Sets the value of the SweepAction property.
|
get_CurrentDeferredObjectCount, get_CurrentExaminedObjectCount, get_CurrentFailedObjectCount, get_CurrentProcessedObjectCount, get_DeferredObjectCount, get_DescriptiveText, get_DisplayName, get_EffectiveEndDate, get_EffectiveStartDate, get_IsEnabled, get_MaximumFailures, get_SweepBatchSize, get_SweepRetryWaitInterval, set_DescriptiveText, set_DisplayName, set_EffectiveEndDate, set_EffectiveStartDate, set_IsEnabled, set_MaximumFailures, set_SweepBatchSize, set_SweepRetryWaitInterval
get_AuditedEvents, get_Creator, get_DateCreated, get_DateLastModified, get_ExaminedObjectCount, get_FailedObjectCount, get_Id, get_InterBatchDelay, get_LastModifier, get_MaxSweepWorkers, get_Owner, get_Permissions, get_ProcessedObjectCount, get_SweepEndDate, get_SweepStartDate, get_SweepTarget, get_SweepTimeslots, set_Creator, set_DateCreated, set_DateLastModified, set_InterBatchDelay, set_LastModifier, set_MaxSweepWorkers, set_Owner, set_Permissions, set_SweepTarget, set_SweepTimeslots
getObjectStore
raiseEvent
addPendingAction, clearPendingActions, delete, getAccessAllowed, getPendingActions, getUpdateSequenceNumber, isCurrent, save, save, setUpdateSequenceNumber
fetchProperties, fetchProperties, fetchProperty, fetchProperty, getObjectReference, refresh, refresh, refresh
get_ClassDescription, getClassName, getConnection, getProperties, getSuperClasses
CmSweepAction get_SweepAction()
void set_SweepAction(CmSweepAction value)
© Copyright IBM Corporation 2006, 2015. All rights reserved.