Package trclib.dataprocessor
Class TrcRequestQueue.RequestEntry
java.lang.Object
trclib.dataprocessor.TrcRequestQueue.RequestEntry
- Enclosing class:
- TrcRequestQueue<R>
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRequestEntry
(R request, TrcEvent event, boolean repeat) Constructor: Create an instance of the object. -
Method Summary
Modifier and TypeMethodDescriptionThis method retrieves the request object.boolean
This method checks if the request entry is canceled.toString()
This method returns the request info as a string.
-
Field Details
-
request
-
notifyEvent
-
repeat
private final boolean repeat -
canceled
private boolean canceled
-
-
Constructor Details
-
RequestEntry
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
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
This method returns the request info as a string.
-