Package io.iworkflow.core.communication
Interface Communication
- All Known Implementing Classes:
CommunicationImpl
public interface Communication
-
Method Summary
Modifier and TypeMethodDescriptionint
getInternalChannelSize
(String channelName) Get the size of the internal channel(including the one being sent in the buffer) NOTE: currently only supported in RPCint
getSignalChannelSize
(String channelName) Get the size of the signal channel(including the one being sent in the buffer) NOTE: currently only supported in RPCvoid
publishInternalChannel
(String channelName, Object value) Publish a value to an internal Channelvoid
triggerStateMovements
(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
-