F - public abstract class BaseFutureAdapter<F extends BaseFuture> extends Object implements BaseFutureListener<F>
BaseFuture always completes either successfully or failed. In
either case a BaseFutureListener is called. If this future fails,
then exception is caught. Since this should never happen in this framework,
we use an adapter where we only have to define
BaseFutureListener#operationComplete(BaseFuture). Since the future is exposed
to the application, that may have exceptions in the listener, developers
should rather use BaseFutureListener#operationComplete(BaseFuture).| Constructor and Description |
|---|
BaseFutureAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(Throwable t)
Prints out the error using the logger.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitoperationCompletepublic void exceptionCaught(Throwable t) throws Exception
exceptionCaught in interface BaseFutureListener<F extends BaseFuture>t - The exception thrown in #operationComplete(BaseFuture).Exception - If an execption is thrown, it is printed in the log and and
System.errCopyright © 2014. All rights reserved.