Class CommunicationImpl

java.lang.Object
io.iworkflow.core.communication.CommunicationImpl
All Implemented Interfaces:
Communication

public class CommunicationImpl extends Object implements Communication
  • Constructor Details

  • Method Details

    • getInternalChannelSize

      public int getInternalChannelSize(String channelName)
      Description copied from interface: Communication
      Get the size of the internal channel(including the one being sent in the buffer) NOTE: currently only supported in RPC
      Specified by:
      getInternalChannelSize in interface Communication
      Parameters:
      channelName - the channel name to get size
      Returns:
      the size of the internal channel
    • getSignalChannelSize

      public int getSignalChannelSize(String channelName)
      Description copied from interface: Communication
      Get the size of the signal channel(including the one being sent in the buffer) NOTE: currently only supported in RPC
      Specified by:
      getSignalChannelSize in interface Communication
      Parameters:
      channelName - the channel name to get size
      Returns:
      the size of the signal channel
    • publishInternalChannel

      public void publishInternalChannel(String channelName, Object value)
      Description copied from interface: Communication
      Publish a value to an internal Channel
      Specified by:
      publishInternalChannel in interface Communication
      Parameters:
      channelName - the channel name to send value
      value - the value to be sent
    • triggerStateMovements

      public void triggerStateMovements(StateMovement... stateMovements)
      Description copied from interface: Communication
      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
      Specified by:
      triggerStateMovements in interface Communication
      Parameters:
      stateMovements - the state movements to trigger
    • getToPublishInternalChannels

      public Map<String,List<EncodedObject>> getToPublishInternalChannels()
    • getStateMovements

      public List<StateMovement> getStateMovements()