public class BatchPublisherConfiguration extends Object
| Constructor and Description |
|---|
BatchPublisherConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCapacity()
Returns the maximum capacity of the publishing queue.
|
long |
getInsertTimeoutSec()
Returns the timeout in seconds the duration that the queue should block while attempting to offer a new item
for the queue.
|
int |
getMaxBatchedEvents()
Returns the maximum count of events that will be expected to be delivered in a single publish call.
|
long |
getPollTimeoutSec()
Returns the timeout in seconds for the worker threads to wait for a new item to be available in the queue
before exiting.
|
long |
getShutdownTimeoutSec()
Returnds the timeout in seconds for the publisher to wait for all worker threads to terminate at shutdown.
|
int |
getThreadCount()
Returns the count of worker threads to have processing the queue.
|
boolean |
isBatchEnabled()
Returns true if handling of audit events should be done in batches.
|
void |
setBatchEnabled(boolean batchEnabled)
sets if handling of audit events should be done in batches.
|
void |
setCapacity(int capacity)
Sets the maximum capacity of the publishing queue.
|
void |
setInsertTimeoutSec(long insertTimeoutSec)
Sets the timeout in seconds the duration that the queue should block while attempting to offer a new item
for the queue.
|
void |
setMaxBatchedEvents(int maxBatchedEvents)
Sets the maximum count of events that will be expected to be delivered in a single publish call.
|
void |
setPollTimeoutSec(long pollTimeoutSec)
Sets the timeout in seconds for the worker threads to wait for a new item to be available in the queue before
exiting.
|
void |
setShutdownTimeoutSec(long shutdownTimeoutSec)
Sets the timeout in seconds for the publisher to wait for all worker threads to terminate at shutdown.
|
void |
setThreadCount(int threadCount)
Sets the count of worker threads to have processing the queue.
|
public int getCapacity()
public void setCapacity(int capacity)
capacity - the maximum capacity of the publishing queuepublic int getThreadCount()
public void setThreadCount(int threadCount)
threadCount - the count of worker threads to have processing the queue.public int getMaxBatchedEvents()
public void setMaxBatchedEvents(int maxBatchedEvents)
maxBatchedEvents - the maximum count of eventspublic long getInsertTimeoutSec()
public void setInsertTimeoutSec(long insertTimeoutSec)
insertTimeoutSec - timeout in secondspublic long getPollTimeoutSec()
public void setPollTimeoutSec(long pollTimeoutSec)
pollTimeoutSec - timeout in secondspublic long getShutdownTimeoutSec()
public void setShutdownTimeoutSec(long shutdownTimeoutSec)
shutdownTimeoutSec - timeout in secondspublic boolean isBatchEnabled()
public void setBatchEnabled(boolean batchEnabled)
batchEnabled - true if handling of audit events should be done in batches.Copyright © 2025 Open Identity Platform Community. All rights reserved.