Package io.mats3.api.intercept
Interface MatsInterceptable
- All Known Subinterfaces:
MatsInterceptableMatsFactory
- All Known Implementing Classes:
JmsMatsFactory
,SpringJmsMatsFactoryWrapper
public interface MatsInterceptable
Specifies methods that an interceptable MatsFactory must provide.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Marker interface to denote a logging interceptor.static interface
Marker interface to denote a metrics interceptor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInitiationInterceptor
(MatsInitiateInterceptor initiateInterceptor) void
addStageInterceptor
(MatsStageInterceptor stageInterceptor) <T extends MatsInitiateInterceptor>
Optional<T>getInitiationInterceptor
(Class<T> interceptorClass) <T extends MatsStageInterceptor>
Optional<T>getStageInterceptor
(Class<T> interceptorClass) void
removeInitiationInterceptor
(MatsInitiateInterceptor initiateInterceptor) void
removeStageInterceptor
(MatsStageInterceptor stageInterceptor)
-
Method Details
-
addInitiationInterceptor
-
getInitiationInterceptors
List<MatsInitiateInterceptor> getInitiationInterceptors() -
getInitiationInterceptor
-
removeInitiationInterceptor
-
addStageInterceptor
-
getStageInterceptors
List<MatsStageInterceptor> getStageInterceptors() -
getStageInterceptor
-
removeStageInterceptor
-