Interface NewDestinationBindingCallback<T>

Type Parameters:
T - the extended properties type. If you need to support dynamic binding with multiple binders, use Object and cast as needed.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface NewDestinationBindingCallback<T>
Configure a new destination before it is bound.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(String channelName, org.springframework.messaging.MessageChannel channel, ProducerProperties producerProperties, T extendedProducerProperties)
    Configure the properties or channel before binding.
  • Method Details

    • configure

      void configure(String channelName, org.springframework.messaging.MessageChannel channel, ProducerProperties producerProperties, T extendedProducerProperties)
      Configure the properties or channel before binding.
      Parameters:
      channelName - the name of the new channel.
      channel - the channel that is about to be bound.
      producerProperties - the producer properties.
      extendedProducerProperties - the extended producer properties (type depends on binder type and may be null if the binder doesn't support extended properties).