Class PollingWaitCallback

  • All Implemented Interfaces:
    java.io.Serializable, Callback

    public class PollingWaitCallback
    extends AbstractCallback
    Class representative of a PollingWaitCallback Callback Object which instructs a client to wait for the given period and then resubmit their request.
    See Also:
    Serialized Form
    • Constructor Detail

      • PollingWaitCallback

        public PollingWaitCallback​(org.json.JSONObject raw,
                                   int index)
        Constructor for creating this Callback
      • PollingWaitCallback

        public PollingWaitCallback()
    • Method Detail

      • setAttribute

        protected void setAttribute​(java.lang.String name,
                                    java.lang.Object value)
        Specified by:
        setAttribute in class AbstractCallback
      • getType

        public java.lang.String getType()
        Description copied from interface: Callback
        Return the type of the Callback, the type name should align with the Callback type returned from AM
      • getWaitTime

        public java.lang.String getWaitTime()
        The period of time in milliseconds that the client should wait before replying to this callback.
      • getMessage

        public java.lang.String getMessage()
        The message which should be displayed to the user