Class DirectWithAttributesChannel
java.lang.Object
org.springframework.cloud.stream.messaging.DirectWithAttributesChannel
- Since:
- 2.1
- Author:
- Oleg Zhurakousky
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringName of the attribute that is considered to be a companion of this channel.protected static final org.springframework.expression.ExpressionParserstatic final longprotected final org.springframework.integration.channel.AbstractMessageChannel.ChannelInterceptorListprotected final org.springframework.core.log.LogAccessorstatic final Stringprotected final Set<org.springframework.integration.support.management.metrics.MeterFacade> static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptor(int arg0, org.springframework.messaging.support.ChannelInterceptor arg1) voidaddInterceptor(org.springframework.messaging.support.ChannelInterceptor arg0) final voidvoiddestroy()protected booleandoSend(org.springframework.messaging.Message<?> arg0, long arg1) static <T> @Nullable TextractTypeIfPossible(@Nullable Object arg0, Class<T> arg1) static UUIDprotected org.springframework.context.ApplicationContext@Nullable StringgetAttribute(String key) protected org.springframework.beans.factory.BeanFactoryprotected org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> @Nullable String@Nullable Objectorg.springframework.core.convert.ConversionServiceprotected org.springframework.integration.dispatcher.UnicastingDispatcher@Nullable org.springframework.expression.Expressionprotected org.springframework.integration.channel.AbstractMessageChannel.ChannelInterceptorListorg.springframework.integration.IntegrationPatternTypeprotected org.springframework.integration.context.IntegrationPropertiesList<org.springframework.messaging.support.ChannelInterceptor> default @Nullable Stringdefault @Nullable Stringprotected org.springframework.integration.support.MessageBuilderFactoryprotected @Nullable org.springframework.integration.support.management.metrics.MetricsCaptororg.springframework.integration.support.management.IntegrationManagement.ManagementOverridesintprotected org.springframework.scheduling.TaskSchedulerdefault <T> Tprotected booleanprotected booleanbooleanbooleanprotected voidonInit()voidregisterMetricsCaptor(org.springframework.integration.support.management.metrics.MetricsCaptor arg0) voidregisterObservationRegistry(io.micrometer.observation.ObservationRegistry arg0) org.springframework.messaging.support.ChannelInterceptorremoveInterceptor(int arg0) booleanremoveInterceptor(org.springframework.messaging.support.ChannelInterceptor arg0) booleansend(org.springframework.messaging.Message<?> arg0) default booleansend(org.springframework.messaging.Message<?> arg0) booleansend(org.springframework.messaging.Message<?> arg0, long arg1) booleansend(org.springframework.messaging.Message<?> arg0, long arg1) voidsetApplicationContext(org.springframework.context.ApplicationContext arg0) voidsetAttribute(String key, Object value) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory arg0) final voidsetBeanName(String arg0) voidsetChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> arg0) voidvoidsetComponentName(String arg0) voidsetComponentSource(Object arg0) voidsetConversionService(org.springframework.core.convert.ConversionService arg0) voidsetDatatypes(Class<?>... arg0) voidsetFailover(boolean arg0) voidvoidsetInterceptors(List<org.springframework.messaging.support.ChannelInterceptor> arg0) voidsetLoggingEnabled(boolean arg0) default voidsetManagedName(String arg0) default voidsetManagedType(String arg0) voidsetMaxSubscribers(int arg0) voidsetMessageBuilderFactory(org.springframework.integration.support.MessageBuilderFactory arg0) voidsetMessageConverter(org.springframework.messaging.converter.MessageConverter arg0) voidsetObservationConvention(@Nullable org.springframework.integration.support.management.observation.MessageSenderObservationConvention arg0) final voidsetPrimaryExpression(org.springframework.expression.Expression arg0) voidsetShouldTrack(boolean arg0) voidsetTaskScheduler(org.springframework.scheduling.TaskScheduler arg0) booleansubscribe(org.springframework.messaging.MessageHandler handler) toString()booleanunsubscribe(org.springframework.messaging.MessageHandler arg0)
-
Field Details
-
COMPANION_ATTR
Name of the attribute that is considered to be a companion of this channel. -
INDEFINITE_TIMEOUT
static final long INDEFINITE_TIMEOUT- See Also:
-
interceptors
protected final org.springframework.integration.channel.AbstractMessageChannel.ChannelInterceptorList interceptors -
meters
-
METER_PREFIX
- See Also:
-
SEND_TIMER_NAME
- See Also:
-
RECEIVE_COUNTER_NAME
- See Also:
-
EXPRESSION_PARSER
protected static final org.springframework.expression.ExpressionParser EXPRESSION_PARSER -
logger
protected final org.springframework.core.log.LogAccessor logger
-
-
Constructor Details
-
DirectWithAttributesChannel
public DirectWithAttributesChannel()
-
-
Method Details
-
setAttribute
-
getAttribute
-
getBeanName
-
destroy
public void destroy() -
subscribe
public boolean subscribe(org.springframework.messaging.MessageHandler handler) -
setFailover
public void setFailover(boolean arg0) -
setFailoverStrategy
-
setMaxSubscribers
public void setMaxSubscribers(int arg0) -
getDispatcher
protected org.springframework.integration.dispatcher.UnicastingDispatcher getDispatcher() -
onInit
protected void onInit() -
getSubscriberCount
public int getSubscriberCount() -
unsubscribe
public boolean unsubscribe(org.springframework.messaging.MessageHandler arg0) -
doSend
protected boolean doSend(org.springframework.messaging.Message<?> arg0, long arg1) -
send
default boolean send(org.springframework.messaging.Message<?> arg0) -
send
boolean send(org.springframework.messaging.Message<?> arg0, long arg1) -
getComponentType
-
getIntegrationPatternType
public org.springframework.integration.IntegrationPatternType getIntegrationPatternType() -
setShouldTrack
public void setShouldTrack(boolean arg0) -
registerMetricsCaptor
public void registerMetricsCaptor(org.springframework.integration.support.management.metrics.MetricsCaptor arg0) -
getMetricsCaptor
protected @Nullable org.springframework.integration.support.management.metrics.MetricsCaptor getMetricsCaptor() -
isLoggingEnabled
public boolean isLoggingEnabled() -
setLoggingEnabled
public void setLoggingEnabled(boolean arg0) -
setDatatypes
-
setInterceptors
-
addInterceptor
public void addInterceptor(org.springframework.messaging.support.ChannelInterceptor arg0) -
addInterceptor
public void addInterceptor(int arg0, org.springframework.messaging.support.ChannelInterceptor arg1) -
setMessageConverter
public void setMessageConverter(org.springframework.messaging.converter.MessageConverter arg0) -
setObservationConvention
public void setObservationConvention(@Nullable org.springframework.integration.support.management.observation.MessageSenderObservationConvention arg0) -
getInterceptors
-
removeInterceptor
public boolean removeInterceptor(org.springframework.messaging.support.ChannelInterceptor arg0) -
removeInterceptor
public org.springframework.messaging.support.ChannelInterceptor removeInterceptor(int arg0) -
getIChannelInterceptorList
protected org.springframework.integration.channel.AbstractMessageChannel.ChannelInterceptorList getIChannelInterceptorList() -
getOverrides
public org.springframework.integration.support.management.IntegrationManagement.ManagementOverrides getOverrides() -
registerObservationRegistry
public void registerObservationRegistry(io.micrometer.observation.ObservationRegistry arg0) -
isObserved
public boolean isObserved() -
getFullChannelName
-
send
public boolean send(org.springframework.messaging.Message<?> arg0) -
send
public boolean send(org.springframework.messaging.Message<?> arg0, long arg1) -
isApplicationRunning
protected boolean isApplicationRunning() -
getComponentName
String getComponentName() -
setManagedName
-
getManagedName
-
setManagedType
-
getManagedType
-
getThisAs
default <T> T getThisAs() -
setBeanName
-
getComponentName
-
setComponentName
-
setComponentSource
-
getComponentSource
-
setComponentDescription
-
getComponentDescription
-
getBeanDescription
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory arg0) -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException - Throws:
org.springframework.beans.BeansException
-
setChannelResolver
public void setChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> arg0) -
getExpression
public @Nullable org.springframework.expression.Expression getExpression() -
setPrimaryExpression
public final void setPrimaryExpression(org.springframework.expression.Expression arg0) -
afterPropertiesSet
public final void afterPropertiesSet() -
isInitialized
protected boolean isInitialized() -
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory() -
setTaskScheduler
public void setTaskScheduler(org.springframework.scheduling.TaskScheduler arg0) -
getTaskScheduler
protected org.springframework.scheduling.TaskScheduler getTaskScheduler() -
getChannelResolver
protected org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> getChannelResolver() -
setConversionService
public void setConversionService(org.springframework.core.convert.ConversionService arg0) -
getConversionService
public org.springframework.core.convert.ConversionService getConversionService() -
getApplicationContextId
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
getIntegrationProperties
protected org.springframework.integration.context.IntegrationProperties getIntegrationProperties() -
getMessageBuilderFactory
protected org.springframework.integration.support.MessageBuilderFactory getMessageBuilderFactory() -
setMessageBuilderFactory
public void setMessageBuilderFactory(org.springframework.integration.support.MessageBuilderFactory arg0) -
toString
-
extractTypeIfPossible
-
generateId
-