- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- AbstractAlien9800Command, AbstractLLRPCommand, AwidPortalIDCommand, AwidReadBlockDataCommand, AwidStopCommand, LLRPReset, Thingmagic6PushCommand, ThinkifyUSPushCommand, WriteCommand
public abstract class TimeoutCommand
extends Command
An Abstract base class that can be used by Reader Commands which timeout.
Instead of implementing the run() method of the Command class, concrete
implementations implement the execute method that throws a TimeoutException.
If the TimeoutException is thrown, this class will call the handle session's
timeout method.
To determine how long to wait on a response before throwing a
TimeoutException, the execute method should use the system property
'org.rifidi.edge.sessions.timeout'
The execute method in the Commands should execute reasonably quickly and
should not be long running.
- Author:
- Kyle Neumeier - kyle@pramari.com