Subclasses can extend this class to easily associate additional data or behavior with the {@link DeferredResult}. For example, one might want to associate the user used to create the {@link DeferredResult} by extending theclass and adding an addition property for the user. In this way, the user could easily be accessed later without the need to use a data structure to do the mapping.
An example of associating additional behavior to this class might be realized by extending the class to implement an additional interface. For example, one might want to implement a {@link Comparable} so that when the{@link DeferredResult} is added to a {@link PriorityQueue} it is handled inthe correct order. @author Rossen Stoyanchev @author Rob Winch @since 3.2
|
|