public class DeleteAllAuditEventsHandler extends AuditEventHandlerAdapter
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_NAME_BATCHSIZE
Handler property for the batch size used for deletion.
|
static String |
PROPERTY_NAME_TARGETAUDITSPECIFICATION
Handler property that specifies the AuditSpecifcation whose
events are to be deleted.
|
Constructor and Description |
---|
DeleteAllAuditEventsHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleInitialize(AuditEventHandlerContext context)
Initializes this handler.
|
void |
handleTimerExpired(AuditEventHandlerContext context)
Called when the timer for this AuditEventHandler expires.
|
deleteEvents, getAuditHandlerSpecification, getAuditSpecification, getHandlerProperty, handleDispose, handleEventPosted, processEvent, processEvents, processEvents, selectEvents, selectEvents, selectMaximumEventId, setHandlerProperty
public static final String PROPERTY_NAME_TARGETAUDITSPECIFICATION
public static final String PROPERTY_NAME_BATCHSIZE
public void handleInitialize(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
Called immediately after construction.
handleInitialize
in interface AuditEventHandler
handleInitialize
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failspublic void handleTimerExpired(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
handleTimerExpired
in interface AuditEventHandler
handleTimerExpired
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failsCopyright © 2023. All rights reserved.