Class CommunicationImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      CommunicationImpl​(java.util.Map<java.lang.String,​java.lang.Class<?>> nameToTypeMap, ObjectEncoder objectEncoder, boolean allowTriggerStateMovements)  
    • Constructor Detail

      • CommunicationImpl

        public CommunicationImpl​(java.util.Map<java.lang.String,​java.lang.Class<?>> nameToTypeMap,
                                 ObjectEncoder objectEncoder,
                                 boolean allowTriggerStateMovements)
    • Method Detail

      • publishInternalChannel

        public void publishInternalChannel​(java.lang.String channelName,
                                           java.lang.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
      • getToPublishInternalChannels

        public java.util.Map<java.lang.String,​java.util.List<EncodedObject>> getToPublishInternalChannels()
      • getStateMovements

        public java.util.List<StateMovement> getStateMovements()