Interface ComponentParameterizer<T extends ComponentParameterizer>
- All Superinterfaces:
Parameterizer<T>
- All Known Subinterfaces:
OperationParameterizer,SourceParameterizer
ExtensionsClient
NOTE: Experimental feature. Backwards compatibility not guaranteed.
- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescriptionreconnectingForever(int frequency) Specifies that in the case of aConnectionException, the connection is to be re-established and the operation indefinitely until successfulwithConfigRef(String configurationName) Specifies the name of a config element this component refers toSpecifies that the operation is to used whatever repeatable iterables strategy is default for the current execution context.Specifies that the operation is to used whatever repeatable streaming strategy is default for the current execution context.withFileStoreRepeatableIterables(int maxInMemoryInstances) Specifies that the operation is to use file based repeatable streamingwithFileStoreRepeatableStreaming(org.mule.runtime.api.util.DataSize maxInMemorySize) Specifies that the operation is to use file based repeatable streamingwithInMemoryRepeatableIterables(int initialBufferSize, int bufferSizeIncrement, int maxBufferSize) Specifies that the operation is to use in-memory repeatable iterableswithInMemoryRepeatableStreaming(org.mule.runtime.api.util.DataSize initialBufferSize, org.mule.runtime.api.util.DataSize bufferSizeIncrement, org.mule.runtime.api.util.DataSize maxBufferSize) Specifies that the operation is to use in-memory repeatable streamingwithSimpleReconnection(int frequency, int maxAttempts) Specifies that in the case of aConnectionException, the connection is to be re-established and the operation retried up tomaxAttemptstimes, with an interval offrequencymilliseconds.Methods inherited from interface org.mule.runtime.extension.api.client.params.Parameterizer
withParameter, withParameter
-
Method Details
-
withConfigRef
Specifies the name of a config element this component refers to- Parameters:
configurationName- a configuration name- Returns:
thisinstance
-
withSimpleReconnection
Specifies that in the case of aConnectionException, the connection is to be re-established and the operation retried up tomaxAttemptstimes, with an interval offrequencymilliseconds.If no reconnection strategy is specified (either through this or similar methods), then no reconnection is attempted at all.
- Parameters:
frequency- the attempts interval in millisecondsmaxAttempts- the max number of attempts to be performed.- Returns:
thisinstance
-
reconnectingForever
Specifies that in the case of aConnectionException, the connection is to be re-established and the operation indefinitely until successfulIf no reconnection strategy is specified (either through this or similar methods), then no reconnection is attempted at all.
- Parameters:
frequency- the attempts interval in milliseconds- Returns:
thisinstance
-
withDefaultRepeatableStreaming
T withDefaultRepeatableStreaming()Specifies that the operation is to used whatever repeatable streaming strategy is default for the current execution context.If this concept does not apply to the executed operation (either because it uses iterables instead of streams or because it doesn't stream at all), then calling this method has no effect.
If no repeatable streaming strategy is specified (either through this or similar methods), then streaming results will not be made repeatable
- Returns:
thisinstance
-
withInMemoryRepeatableStreaming
T withInMemoryRepeatableStreaming(org.mule.runtime.api.util.DataSize initialBufferSize, org.mule.runtime.api.util.DataSize bufferSizeIncrement, org.mule.runtime.api.util.DataSize maxBufferSize) Specifies that the operation is to use in-memory repeatable streamingIf this concept does not apply to the executed operation (either because it uses iterables instead of streams or because it doesn't stream at all), then calling this method has no effect.
If no repeatable streaming strategy is specified (either through this or similar methods), then streaming results will not be made repeatable
- Parameters:
initialBufferSize- the buffer's initial size. Must be greater than zero bytes.bufferSizeIncrement- the size that the buffer should gain each time it is expanded. A value of zero bytes means no expansion. Cannot be negative byte size.maxBufferSize- the maximum amount of space that the buffer can grow to. Usenullfor unbounded buffers- Returns:
thisinstance
-
withFileStoreRepeatableStreaming
Specifies that the operation is to use file based repeatable streamingIf this concept does not apply to the executed operation (either because it uses iterables instead of streams or because it doesn't stream at all), then calling this method has no effect.
If no repeatable streaming strategy is specified (either through this or similar methods), then streaming results will not be made repeatable
- Parameters:
maxInMemorySize- the maximum amount of data to be held in memory before information is rolled over to disk- Returns:
thisinstance
-
withDefaultRepeatableIterables
T withDefaultRepeatableIterables()Specifies that the operation is to used whatever repeatable iterables strategy is default for the current execution context.If this concept does not apply to the executed operation (either because it uses bytes streaming instead of iterables or because it doesn't stream at all), then calling this method has no effect.
If no repeatable streaming strategy is specified (either through this or similar methods), then streaming results will not be made repeatable
- Returns:
thisinstance
-
withInMemoryRepeatableIterables
T withInMemoryRepeatableIterables(int initialBufferSize, int bufferSizeIncrement, int maxBufferSize) Specifies that the operation is to use in-memory repeatable iterablesIf this concept does not apply to the executed operation (either because it uses bytes streams instead of iterables or because it doesn't stream at all), then calling this method has no effect.
If no repeatable streaming strategy is specified (either through this or similar methods), then streaming results will not be made repeatable
- Parameters:
initialBufferSize- the buffer's initial size. Must be greater than zerobufferSizeIncrement- the size that the buffer should gain each time it is expanded. A value of zero means no expansion. Cannot be lower than zero.maxBufferSize- the maximum amount of space that the buffer can grow to. Usenullfor unbounded buffers- Returns:
thisinstance
-
withFileStoreRepeatableIterables
Specifies that the operation is to use file based repeatable streamingIf this concept does not apply to the executed operation (either because it uses bytes streams instead of iterables or because it doesn't stream at all), then calling this method has no effect.
If no repeatable streaming strategy is specified (either through this or similar methods), then streaming results will not be made repeatable
- Parameters:
maxInMemoryInstances- maxInMemoryInstances the maximum amount of space that the buffer can grow to. Usenullfor unbounded buffers- Returns:
thisinstance
-