spring-framework / org.springframework.messaging.support / ExecutorSubscribableChannel / <init>

<init>

ExecutorSubscribableChannel()

Create a new ExecutorSubscribableChannel instance where messages will be sent in the callers thread.

ExecutorSubscribableChannel(@Nullable executor: Executor)

Create a new ExecutorSubscribableChannel instance where messages will be sent via the specified executor.

Parameters

executor - the executor used to send the message, or null to execute in the callers thread.