T- the type of
Messageto resolve the context for
@FunctionalInterface public interface TargetContextResolver<T extends Message<?>>
Messageshould be routed. This is used in multi-context situations, where certain Messages need to be routed to another "Bounded Context" than the one the application itself is registered in.
|Modifier and Type||Method and Description|
Returns a no-op TargetContextResolver.
Returns a TargetContextResolver that uses
Provides the context to which a message should be routed.
message- the message to resolve the context for
nullif the message does not specify any context
default TargetContextResolver<T> orElse(TargetContextResolver<? super T> other)
thisinstance to resolve a context for a given message and if it returns
null, returns the results of the
other- the resolver that will provide a context if
thisdoesn't return one
this, or the
Copyright © 2010–2021. All rights reserved.