2 Home
gitea_admin edited this page 2026-03-11 14:41:16 +00:00

Minio

Store and retrieve objects from Minio Storage Service using Minio SDK.

Metadata

Property Value
Scheme minio
Support Level Stable
Labels cloud,file
Version 4.10.2

Maven Dependency

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-minio</artifactId>
    <version>4.10.2</version>
</dependency>

Endpoint Properties

Name Type Required Default Description
bucketName string Bucket name
autoCreateBucket boolean true Setting the autocreation of the bucket if bucket name not exist.
endpoint string Endpoint can be an URL, domain name, IPv4 address or IPv6 address.
minioClient object Reference to a Minio Client object in the registry.
objectLock boolean false Set when creating new bucket.
policy string The policy for this queue to set in the method.
proxyPort integer TCP/IP port number. 80 and 443 are used as defaults for HTTP and HTTPS.
region string The region in which Minio client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-east-1). You'll need to use the name Region.EU_WEST_1.id()
secure boolean false Flag to indicate to use secure connection to minio service or not.
autoCloseBody boolean true If this option is true and includeBody is true, then the MinioObject.close() method will be called on exchange completion. This option is strongly related to includeBody option. In case of setting includeBody to true and autocloseBody to false, it will be up to the caller to close the MinioObject stream. Setting autocloseBody to true, will close the MinioObject stream automatically.
bypassGovernanceMode boolean false Set this flag if you want to bypassGovernanceMode when deleting a particular object.
deleteAfterRead boolean true Delete objects from Minio after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. Therefore you need to use the Idempotent Consumer EIP in the route to filter out duplicates. You can filter using the MinioConstants#BUCKET_NAME and MinioConstants#OBJECT_NAME headers, or only the MinioConstants#OBJECT_NAME header.
delimiter string The delimiter which is used in the ListObjectsRequest to only consume objects we are interested in.
destinationBucketName string Destination bucket name.
destinationObjectName string Destination object name.
includeBody boolean true If it is true, the exchange body will be set to a stream to the contents of the file. If false, the headers will be set with the Minio object metadata, but the body will be null. This option is strongly related to autocloseBody option. In case of setting includeBody to true and autocloseBody to false, it will be up to the caller to close the MinioObject stream. Setting autocloseBody to true, will close the MinioObject stream automatically.
includeFolders boolean false The flag which is used in the ListObjectsRequest to set include folders.
includeUserMetadata boolean false The flag which is used in the ListObjectsRequest to get objects with user meta data.
includeVersions boolean false The flag which is used in the ListObjectsRequest to get objects with versioning.
length integer Number of bytes of object data from offset.
matchETag string Set match ETag parameter for get object(s).
maxConnections integer 60 Set the maxConnections parameter in the minio client configuration
maxMessagesPerPoll integer 10 Gets the maximum number of messages as a limit to poll at each polling. Gets the maximum number of messages as a limit to poll at each polling. The default value is 10. Use 0 or a negative number to set it as unlimited.
modifiedSince object Set modified since parameter for get object(s).
moveAfterRead boolean false Move objects from bucket to a different bucket after they have been retrieved. To accomplish the operation the destinationBucket option must be set. The copy bucket operation is only performed if the Exchange is committed. If a rollback occurs, the object is not moved.
notMatchETag string Set not match ETag parameter for get object(s).
objectName string To get the object from the bucket with the given object name.
offset integer Start byte position of object data.
prefix string Object name starts with prefix.
recursive boolean false List recursively than directory structure emulation.
sendEmptyMessageWhenIdle boolean false If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead.
startAfter string list objects in bucket after this object name.
unModifiedSince object Set un modified since parameter for get object(s).
useVersion1 boolean false when true, version 1 of REST API is used.
versionId string Set specific version_ID of a object when deleting the object.
bridgeErrorHandler boolean false Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.
exceptionHandler object To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored.
exchangePattern object Sets the exchange pattern when the consumer creates an exchange.
pollStrategy object A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel.
deleteAfterWrite boolean false Delete file object after the Minio file has been uploaded.
keyName string Setting the key name for an element in the bucket through endpoint parameter.
operation object The operation to do in case the user don't want to do only an upload.
pojoRequest boolean false If we want to use a POJO request as body or not.
storageClass string The storage class to set in the request.
lazyStartProducer boolean false Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.
customHttpClient object Set custom HTTP client for authenticated access.
backoffErrorThreshold integer The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in.
backoffIdleThreshold integer The number of subsequent idle polls that should happen before the backoffMultipler should kick-in.
backoffMultiplier integer To let the scheduled polling consumer backoff if there has been a number of subsequent idles/errors in a row. The multiplier is then the number of polls that will be skipped before the next actual attempt is happening again. When this option is in use then backoffIdleThreshold and/or backoffErrorThreshold must also be configured.
delay integer 500 Milliseconds before the next poll.
greedy boolean false If greedy is enabled, then the ScheduledPollConsumer will run immediately again, if the previous run polled 1 or more messages.
initialDelay integer 1000 Milliseconds before the first poll starts.
repeatCount integer 0 Specifies a maximum limit of number of fires. So if you set it to 1, the scheduler will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever.
runLoggingLevel object TRACE The consumer logs a start/complete log line when it polls. This option allows you to configure the logging level for that.
scheduledExecutorService object Allows for configuring a custom/shared thread pool to use for the consumer. By default each consumer has its own single threaded thread pool.
scheduler object none To use a cron scheduler from either camel-spring or camel-quartz component. Use value spring or quartz for built in scheduler
schedulerProperties object To configure additional properties when using a custom scheduler or any of the Quartz, Spring based scheduler.
startScheduler boolean true Whether the scheduler should be auto started.
timeUnit object MILLISECONDS Time unit for initialDelay and delay options.
useFixedDelay boolean true Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details.
accessKey string Amazon AWS Secret Access Key or Minio Access Key. If not set camel will connect to service for anonymous access.
secretKey string Amazon AWS Access Key Id or Minio Secret Key. If not set camel will connect to service for anonymous access.
serverSideEncryption object Server-side encryption.
serverSideEncryptionCustomerKey object Server-side encryption for source object while copy/move objects.