Interface IntegrationManagement
- All Superinterfaces:
org.springframework.beans.factory.DisposableBean,NamedComponent
- All Known Subinterfaces:
IntegrationInboundManagement
- All Known Implementing Classes:
AbstractCorrelatingMessageHandler,AbstractExecutorChannel,AbstractFetchLimitingMessageSource,AbstractMappingMessageRouter,AbstractMessageChannel,AbstractMessageHandler,AbstractMessageProducingHandler,AbstractMessageRouter,AbstractMessageSource,AbstractMessageSplitter,AbstractPollableChannel,AbstractReactiveMessageHandler,AbstractReplyProducingMessageHandler,AbstractReplyProducingPostProcessingMessageHandler,AbstractSubscribableChannel,AggregatingMessageHandler,AnnotationGatewayProxyFactoryBean,BarrierMessageHandler,BridgeHandler,ContentEnricher,CorrelatingMessageBarrier,DefaultMessageSplitter,DelayHandler,DirectChannel,ErrorMessageExceptionTypeRouter,ExecutorChannel,ExpressionEvaluatingMessageHandler,ExpressionEvaluatingMessageSource,ExpressionEvaluatingRouter,ExpressionEvaluatingSplitter,FluxAggregatorMessageHandler,FluxMessageChannel,GatewayMessageHandler,GatewayProxyFactoryBean,HeaderValueRouter,LoggingHandler,MessageFilter,MessageHandlerChain,MessageHandlerSupport,MessageProcessorMessageSource,MessageTransformingHandler,MessagingGatewaySupport,MethodInvokingMessageHandler,MethodInvokingMessageSource,MethodInvokingRouter,MethodInvokingSplitter,NullChannel,PayloadTypeRouter,PriorityChannel,PublishSubscribeChannel,QueueChannel,RecipientListRouter,RendezvousChannel,ReplyProducingMessageHandlerWrapper,ResequencingMessageHandler,ResourceRetrievingMessageSource,ScatterGatherHandler,ServiceActivatingHandler
public interface IntegrationManagement
extends NamedComponent, org.springframework.beans.factory.DisposableBean
Base interface for Integration managed components.
- Since:
- 4.2
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classToggles to inform the management configurer to not set these properties since the user has manually configured them in a bean definition. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voiddestroy()default Stringdefault StringReturn the overrides.default <T> TReturn thisIntegrationManagementas its concrete type.default booleanReturn whether logging is enabled.default voidregisterMetricsCaptor(MetricsCaptor captor) Inject aMetricsCaptor.default voidregisterObservationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) Inject anObservationRegistry.default voidsetLoggingEnabled(boolean enabled) Enable logging or not.default voidsetManagedName(String managedName) default voidsetManagedType(String managedType) Methods inherited from interface org.springframework.integration.support.context.NamedComponent
getBeanName, getComponentName, getComponentType
-
Field Details
-
METER_PREFIX
- See Also:
-
SEND_TIMER_NAME
- See Also:
-
RECEIVE_COUNTER_NAME
- See Also:
-
-
Method Details
-
setLoggingEnabled
@ManagedAttribute(description="Use to disable debug logging during normal message flow") default void setLoggingEnabled(boolean enabled) Enable logging or not.- Parameters:
enabled- false to disable.
-
isLoggingEnabled
@ManagedAttribute default boolean isLoggingEnabled()Return whether logging is enabled.- Returns:
- true if enabled.
-
setManagedName
-
getManagedName
-
setManagedType
-
getManagedType
-
getOverrides
Return the overrides.- Returns:
- the overrides.
- Since:
- 5.0
-
registerMetricsCaptor
Inject aMetricsCaptor. Ignored ifObservationRegistryis provided.- Parameters:
captor- the captor.- Since:
- 5.0.4
- See Also:
-
registerObservationRegistry
default void registerObservationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) Inject anObservationRegistry. If provided, theMetricsCaptoris ignored. The meters capturing has to be configured as anObservationHandleron the providedObservationRegistry.- Parameters:
observationRegistry- theObservationRegistryto expose observations from the component.- Since:
- 6.0
- See Also:
-
destroy
default void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
getThisAs
default <T> T getThisAs()Return thisIntegrationManagementas its concrete type.- Type Parameters:
T- the type.- Returns:
- this.
- Since:
- 5.4
-