Class TrcRequestQueue.RequestEntry

java.lang.Object
trclib.dataprocessor.TrcRequestQueue.RequestEntry
Enclosing class:
TrcRequestQueue<R>

public class TrcRequestQueue.RequestEntry extends Object
This class implements a request entry. Typically, an entry will be put into a FIFO request queue so that each entry will be processed in the order they came in.
  • Field Details

    • request

      private final R request
    • notifyEvent

      private final TrcEvent notifyEvent
    • repeat

      private final boolean repeat
    • canceled

      private boolean canceled
  • Constructor Details

    • RequestEntry

      public RequestEntry(R request, TrcEvent event, boolean repeat)
      Constructor: Create an instance of the object.
      Parameters:
      request - specifies the request.
      event - specifies the event to notify when the request is up for processing.
      repeat - specifies true to re-queue the request when completed.
  • Method Details

    • getRequest

      public R getRequest()
      This method retrieves the request object.
      Returns:
      request object.
    • isCanceled

      public boolean isCanceled()
      This method checks if the request entry is canceled.
      Returns:
      true if the request entry is canceled, false otherwise.
    • toString

      public String toString()
      This method returns the request info as a string.
      Overrides:
      toString in class Object
      Returns:
      request info string.