Class ChainDefinition


  • public class ChainDefinition
    extends java.lang.Object
    A dynamic chain definition, providing the configuration for each plug-in in a chain. Can be used by a manager to create a chain.

    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).

    • Method Detail

      • getChainDefinitionId

        public java.lang.String getChainDefinitionId()
        Returns:
        the identifier used for this dynamic chain in the configuration
      • getPlugins

        public java.util.List<ChainDefinition.PluginConfiguration> getPlugins()
        Returns:
        the configuration and name of each plug-in in the chain, starting with the host and ending with the transport. This returns a reference (not a copy), so any changes made to the returned list will affect the chain definition itself.
      • getTransportConfig

        public java.util.Map<java.lang.String,​java.lang.Object> getTransportConfig()
        Returns:
        the configuration associated with the transport at the end of this chain definition. This is a reference not a copy so any changes made to the returned value will affect the chain definition.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object