public static interface MatsStage.StageConfig<R,S,I> extends MatsConfig
MatsConfig.StartStoppable
Modifier and Type | Method and Description |
---|---|
java.lang.Class<I> |
getIncomingClass() |
java.lang.String |
getOrigin() |
int |
getRunningStageProcessors() |
java.lang.String |
getStageId() |
int |
getStageIndex() |
MatsStage.StageConfig<R,S,I> |
setAttribute(java.lang.String key,
java.lang.Object value)
Sets an attribute for this entity (factory, endpoint, stage) - can e.g.
|
MatsStage.StageConfig<R,S,I> |
setConcurrency(int concurrency)
Changes 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 ). |
MatsStage.StageConfig<R,S,I> |
setInteractiveConcurrency(int concurrency)
Like
MatsConfig.setConcurrency(int) , but changes the "interactive concurrency" specifically - this is relevant for
the Mats Flows that are initiated with the interactive flag set. |
MatsStage.StageConfig<R,S,I> |
setOrigin(java.lang.String info)
Sets the origin for this Stage, i.e.
|
getAttribute, getConcurrency, getInteractiveConcurrency, isConcurrencyDefault, isInteractiveConcurrencyDefault, isRunning
java.lang.String getStageId()
MatsEndpoint.EndpointConfig.getEndpointId()
.int getStageIndex()
getStageId()
is equal
to the Endpoint's endpointId
. Subsequent stages will have
indices 1, 2, 3 etc. This will typically also be reflected in the stageId for all non-initial stages,
where their stageIds are equal to "{endpointId}.stage{stageIndex}"
(the initial stage is
just "{endpointId}"
, of course).java.lang.Class<I> getIncomingClass()
int getRunningStageProcessors()
MatsConfig.getConcurrency()
if the concurrency was set when stage was running.MatsStage.StageConfig<R,S,I> setOrigin(java.lang.String info)
automatically created creation info
is useless. 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.this
, for chaining.java.lang.String getOrigin()
setOrigin(String)
.MatsStage.StageConfig<R,S,I> setAttribute(java.lang.String key, java.lang.Object value)
MatsConfig
null
, the mapping for the specified key is cleared.setAttribute
in interface MatsConfig
key
- the key name for this attribute. Not null
.value
- the value for this attribute. If the value is null
, the mapping for the specified key is
cleared.MatsStage.StageConfig<R,S,I> setConcurrency(int concurrency)
MatsConfig
MatsFactory
), or of the process stage (which defaults to the concurrency of the MatsEndpoint
).
Will only have effect before the MatsStage
is started. Can be reset by stopping, setting, and restarting.
Setting to 0 will invoke default logic.setConcurrency
in interface MatsConfig
concurrency
- the concurrency for the Factory, or Endpoint, or Stage. If set to 0, default-logic is in effect.MatsConfig.getConcurrency()
MatsStage.StageConfig<R,S,I> setInteractiveConcurrency(int concurrency)
MatsConfig
MatsConfig.setConcurrency(int)
, but changes the "interactive concurrency" specifically - this is relevant for
the Mats Flows that are initiated with the interactive
flag set.setInteractiveConcurrency
in interface MatsConfig
concurrency
- the interactive concurrency for the Factory, or Endpoint, or Stage. If set to 0, default-logic is in
effect.MatsConfig.getInteractiveConcurrency()