ExtensionsClient- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptioninTheContextOf(org.mule.runtime.api.event.Event event) Specifies an event to which this operation is relative to.reconnectingForever(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 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 streamingwithParameter(String parameterName, Object value) Sets a parameter with a given value, automatically determining the group the parameter belongs to.withParameter(String parameterGroup, String parameterName, Object value) Sets a parameter with a given value.withSimpleReconnection(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.
-
Method Details
-
withConfigRef
-
withParameter
Sets a parameter with a given value, automatically determining the group the parameter belongs to.- Parameters:
parameterName- the name of the parameter within theparamGroupNamegroup to set.value- the value of the parameter to set- Returns:
thisinstance
-
withParameter
Sets a parameter with a given value.- Parameters:
parameterGroup- the name of the group containing the parameter to set.parameterName- the name of the parameter within theparamGroupNamegroup to set.value- the value of the parameter to set- 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
OperationParameterizer 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
OperationParameterizer 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
OperationParameterizer withFileStoreRepeatableStreaming(org.mule.runtime.api.util.DataSize maxInMemorySize) 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
OperationParameterizer 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
OperationParameterizer 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
-
inTheContextOf
Specifies an event to which this operation is relative to. This means that parameters assigned with expression values, or managed streams returned will be associated to this event. If not specified, a temporary event will be generated for the execution and discarded immediately after.- Parameters:
event- anEvent- Returns:
thisinstance
-