public class DefaultAuditBulker extends Object implements AuditBulkerMBean, AuditBulker
Modifier and Type | Method and Description |
---|---|
boolean |
await(long time,
TimeUnit unit) |
int |
getBulkSize() |
int |
getBulkTimeout() |
void |
offer(LogEntry entry) |
void |
onApplicationStarted() |
void |
onApplicationStopped() |
void |
resetMetrics() |
void |
setBulkSize(int value) |
void |
setBulkTimeout(int value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onShutdown
public void onApplicationStarted()
onApplicationStarted
in interface AuditBulker
public void onApplicationStopped()
onApplicationStopped
in interface AuditBulker
public void offer(LogEntry entry)
offer
in interface AuditBulker
public boolean await(long time, TimeUnit unit) throws InterruptedException
await
in interface AuditBulker
InterruptedException
public int getBulkTimeout()
getBulkTimeout
in interface AuditBulkerMBean
public void setBulkTimeout(int value)
setBulkTimeout
in interface AuditBulkerMBean
public int getBulkSize()
getBulkSize
in interface AuditBulkerMBean
public void setBulkSize(int value)
setBulkSize
in interface AuditBulkerMBean
public void resetMetrics()
resetMetrics
in interface AuditBulkerMBean
Copyright © 2017 Nuxeo. All rights reserved.