KotlinSplitterSpec

A SplitterSpec wrapped for Kotlin DSL.

Author

Artem Bilan

Since

6.2

Constructors

Link copied to clipboard
constructor(delegate: SplitterSpec)

Properties

Link copied to clipboard
open override val delegate: SplitterSpec

the ConsumerEndpointSpec this instance is delegating to.

Functions

Link copied to clipboard
fun advice(vararg advice: Advice?)
Link copied to clipboard
fun applySequence(applySequence: Boolean)

Set the applySequence flag to the specified value. Defaults to true.

Link copied to clipboard
fun autoStartup(autoStartup: Boolean)
Link copied to clipboard
fun <T, V> customizeMonoReply(replyCustomizer: (Message<*>, Mono<T>) -> Publisher<V>)
Link copied to clipboard
fun delimiters(delimiters: String)

Set delimiters to tokenize String values. The default is null indicating that no tokenizing should occur. If delimiters are provided, they will be applied to any String payload. Only applied if provided splitter is instance of DefaultMessageSplitter.

Link copied to clipboard
fun discardChannel(discardChannelName: String)

Specify a channel bean name where rejected Messages should be sent. If the discard channel is null (the default), rejected Messages will be dropped. A "Rejected Message" means that split function has returned an empty result (but not null): no items to iterate for sending.

fun discardChannel(discardChannel: MessageChannel)

Specify a channel where rejected Messages should be sent. If the discard channel is null (the default), rejected Messages will be dropped. A "Rejected Message" means that split function has returned an empty result (but not null): no items to iterate for sending.

Link copied to clipboard

Configure a subflow to run for discarded messages instead of a discardChannel.

Link copied to clipboard
fun expression(expression: String)
fun expression(expression: Expression)

Provide an expression to use an ExpressionEvaluatingSplitter for the target handler.

Link copied to clipboard
inline fun <P> function(crossinline function: (P) -> Any)

Provide a Kotlin function as a direct delegate for org.springframework.integration.splitter.MethodInvokingSplitter.

Link copied to clipboard
fun handleMessageAdvice(vararg interceptors: MethodInterceptor?)
Link copied to clipboard
fun id(id: String?)
Link copied to clipboard
fun method(method: String?)

Provide a service method name to call. Optional. Use only together with .ref or .refName.

Link copied to clipboard
fun phase(phase: Int)
Link copied to clipboard
fun poller(pollers: (PollerFactory) -> PollerSpec)
fun poller(pollerMetadataSpec: PollerSpec)
fun poller(pollerMetadata: PollerMetadata)
Link copied to clipboard
fun reactive()
fun reactive(reactiveCustomizer: (Flux<Message<*>>) -> Publisher<Message<*>>)
Link copied to clipboard
fun ref(ref: Any)

Provide a service to use a MethodInvokingSplitter for the target handler. This option can be set to an AbstractMessageSplitter implementation, a MessageHandlerSpec providing an AbstractMessageSplitter, or MessageProcessorSpec.

Link copied to clipboard
fun refName(refName: String)

Provide a bean name to use a MethodInvokingSplitter (based on BeanNameMessageProcessor) for the target handler.

Link copied to clipboard
fun role(role: String)
Link copied to clipboard
fun taskScheduler(taskScheduler: TaskScheduler)
Link copied to clipboard
fun transactional(handleMessageAdvice: Boolean)
fun transactional(transactionManager: TransactionManager)
fun transactional(transactionInterceptor: TransactionInterceptor)
fun transactional(transactionManager: TransactionManager, handleMessageAdvice: Boolean)