Class JavaScript.DeferredSend

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    JavaScript

    public class JavaScript.DeferredSend
    extends java.lang.Object
    implements java.lang.Runnable
    Runnable object intended to be run inside of the fire method to send out a token that was attempted to be send out at an earlier time, asynchronous with fire.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Invoke send on the port or parameter proxy.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeferredSend

        public DeferredSend​(JavaScript.PortOrParameterProxy proxy,
                            int channelIndex,
                            Token data,
                            java.lang.Object value)
        Construct an object that defers a send operation.
        Parameters:
        proxy - A proxy corresponding to the port or parameter.
        channelIndex - The channel to send data on.
        data - The data token to send through the port or update the parameter with.
        value - The JavaScript value to pass back when the send actually occurs.
    • Method Detail

      • run

        public void run()
        Invoke send on the port or parameter proxy.
        Specified by:
        run in interface java.lang.Runnable