Class ConvertingFutureCallback<U,T>

java.lang.Object
io.confluent.license.util.ConvertingFutureCallback<U,T>
Type Parameters:
U - the callback result type
T - the future result type obtained after converting the callback result
All Implemented Interfaces:
Callback<U>, Future<T>
Direct Known Subclasses:
FutureCallback

public abstract class ConvertingFutureCallback<U,T> extends Object implements Callback<U>, Future<T>
An abstract implementation of Callback that also implements the Future interface. This allows for operations like waiting until the callback is completed via onCompletion(Throwable, Object). The result from the callback can be converted by concrete implementations of this class before being retrieved via Future.get().