- All Superinterfaces:
public static interface MatsEndpoint.EndpointConfig<R,
Provides for both configuring the endpoint (before it is started), and introspecting the configuration.
- the endpointId if this
- whether this Endpoint is "subscription based", as when created with
MatsFactory.subscriptionTerminator(String, Class, Class, ProcessTerminatorLambda).
- the class that will be sent as reply for this endpoint.
- the class used for the endpoint's state.
- the class expected for incoming messages to this endpoint (decided by the first
setOriginSets the origin for this Endpoint, i.e. where it was created. Use this to set something sane if the
automatically created creation infois useless, as it is when Mats' SpringConfig defines the endpoints (thus it employs this method to set something more informative). It should be a single line, no line feeds, but tooling might split the String into multiple lines on the character ';'. It should definitely be short, but informative.
- some human-interpretable information about where in the codebase this Endpoint was created. If this
is displayed in a multi-line capable situation, you should split on ';'. An attempt at some automatic
creation is performed, based on instantiating an exception and introspecting the result. If this
doesn't yield any good result, it can be overridden by
setOrigin(String), as is done by Mats' SpringConfig.
setAttributeSets an attribute for this entity (factory, endpoint, stage) - can e.g. be used by tooling or interceptors. If the value is
null, the mapping for the specified key is cleared.
setConcurrencyChanges the default concurrency of the Factory, or of the endpoint (which defaults to the concurrency of the
MatsFactory), or of the process stage (which defaults to the concurrency of the
MatsEndpoint). Will only have effect before the
MatsStageis started. Can be reset by stopping, setting, and restarting. Setting to 0 will invoke default logic.
MatsConfig.setConcurrency(int), but changes the "interactive concurrency" specifically - this is relevant for the Mats Flows that are initiated with the