Package io.iworkflow.core.communication
Class InternalChannelCommand
- java.lang.Object
-
- io.iworkflow.core.communication.InternalChannelCommand
-
- All Implemented Interfaces:
BaseCommand
@Immutable public abstract class InternalChannelCommand extends java.lang.Object implements BaseCommand
-
-
Constructor Summary
Constructors Constructor Description InternalChannelCommand()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static InternalChannelCommand
create(java.lang.String channelName)
Create one internal channel command.static SuperCommand
create(java.lang.String channelName, int count)
Create a super command that represents one or many internal channel commands.static InternalChannelCommand
create(java.lang.String commandId, java.lang.String channelName)
Create one internal channel command.static SuperCommand
create(java.lang.String commandId, java.lang.String channelName, int count)
Create a super command that represents one or many internal channel commands.abstract java.lang.String
getChannelName()
-
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.command.BaseCommand
getCommandId
-
-
-
-
Method Detail
-
getChannelName
public abstract java.lang.String getChannelName()
-
create
public static SuperCommand create(java.lang.String commandId, java.lang.String channelName, int count)
Create a super command that represents one or many internal channel commands.- Parameters:
commandId
- required. All the internal channel commands created here will share the same commandId.channelName
- required.count
- required. It represents the number of internal channel commands to create.- Returns:
- super command
-
create
public static InternalChannelCommand create(java.lang.String commandId, java.lang.String channelName)
Create one internal channel command.- Parameters:
commandId
- required.channelName
- required.- Returns:
- internal channel command
-
create
public static SuperCommand create(java.lang.String channelName, int count)
Create a super command that represents one or many internal channel commands.- Parameters:
channelName
- required.count
- required. It represents the number of internal channel commands to create.- Returns:
- super command
-
create
public static InternalChannelCommand create(java.lang.String channelName)
Create one internal channel command.- Parameters:
channelName
- required.- Returns:
- internal channel command
-
-