@ThreadSafe public class AsynchronousAuditor extends AbstractAuditor
| Constructor and Description |
|---|
AsynchronousAuditor(ICurrentUserIDProvider aUserIDProvider,
com.helger.commons.callback.IThrowingRunnableWithParameter<List<IAuditItem>> aPerformer) |
| Modifier and Type | Method and Description |
|---|---|
int |
getQueueLength() |
protected void |
handleAuditItem(IAuditItem aAuditItem)
Implement this method to handle the created audit items.
|
com.helger.commons.state.EChange |
stop()
When using this auditor, it is important to call this stop method before
shutdown.
|
createAuditString, onCreateFailure, onCreateSuccess, onDeleteFailure, onDeleteSuccess, onExecuteFailure, onExecuteFailure, onExecuteSuccess, onExecuteSuccess, onModifyFailure, onModifySuccess, onUndeleteFailure, onUndeleteSuccess, setCurrentUserIDProvider, useJsonNotationpublic AsynchronousAuditor(@Nonnull ICurrentUserIDProvider aUserIDProvider, @Nonnull com.helger.commons.callback.IThrowingRunnableWithParameter<List<IAuditItem>> aPerformer)
protected void handleAuditItem(@Nonnull IAuditItem aAuditItem)
AbstractAuditorhandleAuditItem in class AbstractAuditoraAuditItem - The audit item to handle. Never null.@Nonnegative public int getQueueLength()
@Nonnull public com.helger.commons.state.EChange stop()
EChange.CHANGED if the shutdown was performed,
EChange.UNCHANGED if the auditor was already shut down.Copyright © 2014–2015 Philip Helger. All rights reserved.