public class MinioConsumer
extends org.apache.camel.support.ScheduledBatchPollingConsumer
Constructor and Description |
---|
MinioConsumer(MinioEndpoint endpoint,
org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
protected Queue<org.apache.camel.Exchange> |
createExchanges(InputStream objectStream,
String objectName) |
protected Queue<org.apache.camel.Exchange> |
createExchanges(Iterator<io.minio.Result<io.minio.messages.Item>> minioObjectSummaries) |
protected void |
doStart() |
protected MinioConfiguration |
getConfiguration() |
MinioEndpoint |
getEndpoint() |
protected io.minio.MinioClient |
getMinioClient() |
protected int |
poll() |
int |
processBatch(Queue<Object> exchanges) |
protected void |
processCommit(org.apache.camel.Exchange exchange)
Strategy to delete the message after being processed.
|
protected void |
processRollback(org.apache.camel.Exchange exchange)
Strategy when processing the exchange failed.
|
String |
toString() |
deferShutdown, getMaxMessagesPerPoll, getPendingExchangesSize, isBatchAllowed, prepareShutdown, processEmptyMessage, setMaxMessagesPerPoll
afterPoll, beforePoll, doInit, doShutdown, doStop, doSuspend, getBackoffCounter, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isPollAllowed, isPolling, isSchedulerStarted, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, run, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startScheduler
createExchange, createUoW, defaultConsumerCallback, doBuild, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, releaseExchange, setExceptionHandler, setRoute, setRouteId
build, doFail, doLifecycleChange, doResume, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createExchange, defaultConsumerCallback, getProcessor, releaseExchange
public MinioConsumer(MinioEndpoint endpoint, org.apache.camel.Processor processor)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.ScheduledPollConsumer
Exception
protected int poll() throws Exception
poll
in class org.apache.camel.support.ScheduledPollConsumer
Exception
protected Queue<org.apache.camel.Exchange> createExchanges(InputStream objectStream, String objectName) throws Exception
Exception
protected Queue<org.apache.camel.Exchange> createExchanges(Iterator<io.minio.Result<io.minio.messages.Item>> minioObjectSummaries) throws Exception
Exception
protected void processCommit(org.apache.camel.Exchange exchange)
exchange
- the exchangeprotected void processRollback(org.apache.camel.Exchange exchange)
exchange
- the exchangeprotected MinioConfiguration getConfiguration()
protected io.minio.MinioClient getMinioClient()
public MinioEndpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.support.DefaultConsumer
public String toString()
toString
in class org.apache.camel.support.DefaultConsumer
Apache Camel