Class InternalChannelDef

java.lang.Object
io.iworkflow.core.communication.InternalChannelDef
All Implemented Interfaces:
CommunicationMethodDef

@Immutable public abstract class InternalChannelDef extends Object implements CommunicationMethodDef
  • Constructor Details

    • InternalChannelDef

      public InternalChannelDef()
  • Method Details

    • create

      public static InternalChannelDef create(Class type, String name)
      iWF will verify if the name has been registered for the internal channel created using this method, allowing users to create only one internal channel with the same name and type.
      Parameters:
      type - required.
      name - required. The unique name.
      Returns:
      an internal channel definition
    • createByPrefix

      public static InternalChannelDef createByPrefix(Class type, String namePrefix)
      iWF now supports dynamically created internal channels with a shared name prefix and the same type. (E.g., dynamically created internal channels of type String can be named with a common prefix like: internal_channel_prefix_1: "one", internal_channel_prefix_2: "two") iWF will verify if the prefix has been registered for internal channels created using this method, allowing users to create multiple internal channels with the same name prefix and type.
      Parameters:
      type - required.
      namePrefix - required. The common name prefix of a set of internal channels to be created later.
      Returns:
      an internal channel definition