Class PendingPollEvent

    • Constructor Detail

      • PendingPollEvent

        public PendingPollEvent​(IEvent event)

        Constructor for PendingPollEvent.

        Parameters:
        event - a IEvent object.
    • Method Detail

      • getDate

        public java.util.Date getDate()

        getDate

        Specified by:
        getDate in class PollEvent
        Returns:
        a Date object.
      • getEventId

        public int getEventId()

        getEventId

        Specified by:
        getEventId in class PollEvent
        Returns:
        a int.
      • addPending

        public void addPending​(java.lang.Runnable r)

        addPending

        Parameters:
        r - a Runnable object.
      • getEvent

        public IEvent getEvent()

        getEvent

        Returns:
        a IEvent object.
      • isPending

        public boolean isPending()

        isPending

        Returns:
        a boolean.
      • complete

        public void complete​(IEvent e)
        Changes the state of this event from "pending" to "not pending". It is important that this call be thread-safe and idempotent because it may be invoked by multiple DefaultPollContext.onEvent(IEvent) threads.
        Parameters:
        e - a IEvent object.
      • processPending

        public void processPending()
        Synchronously processes all pending tasks attached to this event. It is important that this call be thread-safe and idempotent because it may be invoked by multiple DefaultPollContext#onEvent(Event) threads.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object