Package io.iworkflow.core.communication
Class InternalChannelDef
java.lang.Object
io.iworkflow.core.communication.InternalChannelDef
- All Implemented Interfaces:
CommunicationMethodDef
@Immutable
public abstract class InternalChannelDef
extends Object
implements CommunicationMethodDef
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InternalChannelDef
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.static InternalChannelDef
createByPrefix
(Class type, String namePrefix) iWF now supports dynamically created internal channels with a shared name prefix and the same type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.iworkflow.core.communication.CommunicationMethodDef
getName, getValueType, isPrefix
-
Constructor Details
-
InternalChannelDef
public InternalChannelDef()
-
-
Method Details
-
create
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
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
-