/** * Configure the channel adapter to use the template specification created by invoking the * {@link Consumer} callback, passing in a {@link JmsTemplateSpec}. * @param configurer the configurer. * @return the spec. */ public JmsInboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.jmsTemplateSpec); return _this(); }
public JmsInboundGatewayListenerContainerSpec<S, C> configureListenerContainer( Consumer<JmsListenerContainerSpec<S, C>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
/** * Configure a listener container by invoking the {@link Consumer} callback, with a * {@link KafkaMessageListenerContainerSpec} argument. * @param configurer the configurer Java 8 Lambda. * @return the spec. */ public KafkaMessageDrivenChannelAdapterListenerContainerSpec<K, V> configureListenerContainer( Consumer<KafkaMessageListenerContainerSpec<K, V>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
public JmsInboundGatewayListenerContainerSpec<S, C> configureListenerContainer( Consumer<JmsListenerContainerSpec<S, C>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
/** * Configure a listener container by invoking the {@link Consumer} callback, with a * {@link JmsListenerContainerSpec} argument. * @param configurer the configurer. * @return the spec. */ public JmsMessageDrivenChannelAdapterListenerContainerSpec<S, C> configureListenerContainer( Consumer<JmsListenerContainerSpec<S, C>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
public JmsOutboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.jmsTemplateSpec); return _this(); }
/** * Configure a listener container by invoking the {@link Consumer} callback, with a * {@link JmsListenerContainerSpec} argument. * @param configurer the configurer. * @return the spec. */ public JmsMessageDrivenChannelAdapterListenerContainerSpec<S, C> configureListenerContainer( Consumer<JmsListenerContainerSpec<S, C>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
public JmsOutboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.jmsTemplateSpec); return _this(); }
/** * Configure the channel adapter to use the template specification created by invoking the * {@link Consumer} callback, passing in a {@link JmsTemplateSpec}. * @param configurer the configurer. * @return the spec. */ public JmsInboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.jmsTemplateSpec); return _this(); }
/** * Configure a listener container by invoking the {@link Consumer} callback, with a * {@link KafkaMessageListenerContainerSpec} argument. * @param configurer the configurer Java 8 Lambda. * @return the spec. */ public KafkaMessageDrivenChannelAdapterListenerContainerSpec<K, V> configureListenerContainer( Consumer<KafkaMessageListenerContainerSpec<K, V>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
public S requestMapping(Consumer<RequestMappingSpec> requestMapping) { requestMapping.accept(new RequestMappingSpec(this.requestMapping)); return _this(); }
public S crossOrigin(Consumer<CrossOriginSpec> crossOrigin) { CrossOriginSpec originSpec = new CrossOriginSpec(); crossOrigin.accept(originSpec); this.target.setCrossOrigin(originSpec.crossOrigin); return _this(); }
public MailSendingMessageHandlerSpec javaMailProperties(Consumer<PropertiesBuilder> propertiesConfigurer) { PropertiesBuilder properties = new PropertiesBuilder(); propertiesConfigurer.accept(properties); return javaMailProperties(properties.get()); }
/** * Configure the {@code javaMailProperties} by invoking a {@link Consumer} callback which * is invoked with a {@link PropertiesBuilder}. * @param configurer the configurer. * @return the spec. * @see ImapMailReceiver#setJavaMailProperties(Properties) */ public ImapIdleChannelAdapterSpec javaMailProperties(Consumer<PropertiesBuilder> configurer) { PropertiesBuilder properties = new PropertiesBuilder(); configurer.accept(properties); return javaMailProperties(properties.get()); }
/** * Configure a reply container with a reply container specification determined by * invoking the {@link Consumer} callback with a {@link ReplyContainerSpec}. * @param configurer the configurer. * @return the current {@link JmsOutboundGatewaySpec}. */ public JmsOutboundGatewaySpec replyContainer(Consumer<ReplyContainerSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); ReplyContainerSpec spec = new ReplyContainerSpec(); configurer.accept(spec); this.target.setReplyContainerProperties(spec.get()); return _this(); }
/** * Configure the {@code javaMailProperties} by invoking a {@link Consumer} callback which * is invoked with a {@link PropertiesBuilder}. * @param configurer the configurer. * @return the spec. * @see AbstractMailReceiver#setJavaMailProperties(Properties) */ public S javaMailProperties(Consumer<PropertiesBuilder> configurer) { PropertiesBuilder properties = new PropertiesBuilder(); configurer.accept(properties); return javaMailProperties(properties.get()); }
public MailSendingMessageHandlerSpec javaMailProperties(Consumer<PropertiesBuilder> propertiesConfigurer) { PropertiesBuilder properties = new PropertiesBuilder(); propertiesConfigurer.accept(properties); return javaMailProperties(properties.get()); }
public S crossOrigin(Consumer<CrossOriginSpec> crossOrigin) { CrossOriginSpec originSpec = new CrossOriginSpec(); crossOrigin.accept(originSpec); this.target.setCrossOrigin(originSpec.crossOrigin); return _this(); }
/** * Configure the {@code javaMailProperties} by invoking a {@link Consumer} callback which * is invoked with a {@link PropertiesBuilder}. * @param configurer the configurer. * @return the spec. * @see ImapMailReceiver#setJavaMailProperties(Properties) */ public ImapIdleChannelAdapterSpec javaMailProperties(Consumer<PropertiesBuilder> configurer) { PropertiesBuilder properties = new PropertiesBuilder(); configurer.accept(properties); return javaMailProperties(properties.get()); }
/** * Configure the {@code javaMailProperties} by invoking a {@link Consumer} callback which * is invoked with a {@link PropertiesBuilder}. * @param configurer the configurer. * @return the spec. * @see AbstractMailReceiver#setJavaMailProperties(Properties) */ public S javaMailProperties(Consumer<PropertiesBuilder> configurer) { PropertiesBuilder properties = new PropertiesBuilder(); configurer.accept(properties); return javaMailProperties(properties.get()); }