public class ChainDefinition
extends java.lang.Object
This object is not thread-safe so synchronization should be used by the caller if it is to be mutated.
It is possible for a chain manager to modify a chain definition before using it to create a chain, though it is usually recommended to use an existing dynamic chain definition from the configuration without modification instead (that is, except for any string substitutions passed into the createChain call).
Modifier and Type | Class and Description |
---|---|
static class |
ChainDefinition.PluginConfiguration
The name and configuration of a single plug-in in a chain definition.
|
Constructor and Description |
---|
ChainDefinition(java.lang.String chainDefinitionId,
java.util.List<ChainDefinition.PluginConfiguration> plugins)
Creates a new chain definition from scratch.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChainDefinitionId() |
java.util.List<ChainDefinition.PluginConfiguration> |
getPlugins() |
java.util.Map<java.lang.String,java.lang.Object> |
getTransportConfig() |
java.lang.String |
toString() |
public ChainDefinition(java.lang.String chainDefinitionId, java.util.List<ChainDefinition.PluginConfiguration> plugins)
In most cases a manger will use a chain defined in the configuration using
ChainManagerConstructorParameters.getChainDefinitions()
or
AbstractChainManager.getChainDefinition(String)
instead of this constructor.
chainDefinitionId
- Used in logging and error messages. Not null.plugins
- Not null, must contain at least a host and transport plug-in.public java.lang.String getChainDefinitionId()
public java.util.List<ChainDefinition.PluginConfiguration> getPlugins()
public java.util.Map<java.lang.String,java.lang.Object> getTransportConfig()
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug or feature
Copyright (c) 2013-2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.