Interface Communication

All Known Implementing Classes:
CommunicationImpl

public interface Communication
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the size of the internal channel(including the one being sent in the buffer) NOTE: currently only supported in RPC
    int
    Get the size of the signal channel(including the one being sent in the buffer) NOTE: currently only supported in RPC
    void
    publishInternalChannel(String channelName, Object value)
    Publish a value to an internal Channel
    void
    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

      int getInternalChannelSize(String channelName)
      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

      int getSignalChannelSize(String channelName)
      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

      void publishInternalChannel(String channelName, Object value)
      Publish a value to an internal Channel
      Parameters:
      channelName - the channel name to send value
      value - the value to be sent
    • triggerStateMovements

      void 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
      Parameters:
      stateMovements - the state movements to trigger