Package io.iworkflow.core.communication
Interface Communication
- All Known Implementing Classes:
CommunicationImpl
public interface Communication
-
Method Summary
Modifier and TypeMethodDescriptionintgetInternalChannelSize(String channelName) Get the size of the internal channel(including the one being sent in the buffer) NOTE: currently only supported in RPCintgetSignalChannelSize(String channelName) Get the size of the signal channel(including the one being sent in the buffer) NOTE: currently only supported in RPCvoidpublishInternalChannel(String channelName, Object value) Publish a value to an internal ChannelvoidtriggerStateMovements(StateMovement... stateMovements) trigger new state movements as the RPC results NOTE: closing workflows like completing/failing are not supported NOTE: Only used in RPC -- cannot be used in state APIs
-
Method Details
-
getInternalChannelSize
Get the size of the internal channel(including the one being sent in the buffer) NOTE: currently only supported in RPC- Parameters:
channelName- the channel name to get size- Returns:
- the size of the internal channel
-
getSignalChannelSize
Get the size of the signal channel(including the one being sent in the buffer) NOTE: currently only supported in RPC- Parameters:
channelName- the channel name to get size- Returns:
- the size of the signal channel
-
publishInternalChannel
Publish a value to an internal Channel- Parameters:
channelName- the channel name to send valuevalue- the value to be sent
-
triggerStateMovements
trigger new state movements as the RPC results NOTE: closing workflows like completing/failing are not supported NOTE: Only used in RPC -- cannot be used in state APIs- Parameters:
stateMovements- the state movements to trigger
-