public class DetectFutureFailedImpl extends Object implements DetectFuture
DetectFutureNettyImpl class.
| Constructor and Description |
|---|
DetectFutureFailedImpl(AsyncServiceDetector detector,
Throwable e)
Constructor for DefaultDetectFuture.
|
| Modifier and Type | Method and Description |
|---|---|
DetectFuture |
addListener(DetectFutureListener<DetectFuture> listener)
addListener
|
void |
awaitFor()
awaitFor
|
void |
awaitForUninterruptibly()
awaitForUninterruptibly
|
Throwable |
getException()
getException
|
AsyncServiceDetector |
getServiceDetector()
getServiceDetector
|
boolean |
isDone()
isDone
|
boolean |
isServiceDetected()
isServiceDetected
|
void |
setException(Throwable throwable)
setException
|
void |
setServiceDetected(boolean serviceDetected)
setServiceDetected
|
public DetectFutureFailedImpl(AsyncServiceDetector detector, Throwable e)
Constructor for DefaultDetectFuture.
detector - a AsyncServiceDetector object.e - public AsyncServiceDetector getServiceDetector()
getServiceDetector
getServiceDetector in interface DetectFutureAsyncServiceDetector object.public boolean isServiceDetected()
isServiceDetected
isServiceDetected in interface DetectFuturepublic Throwable getException()
getException
getException in interface DetectFutureThrowable object.public void setServiceDetected(boolean serviceDetected)
DetectFuturesetServiceDetected
setServiceDetected in interface DetectFutureserviceDetected - a boolean.public void setException(Throwable throwable)
DetectFuturesetException
setException in interface DetectFuturethrowable - a Throwable object.public void awaitFor()
throws InterruptedException
DetectFutureawaitFor
awaitFor in interface DetectFutureInterruptedExceptionpublic void awaitForUninterruptibly()
DetectFutureawaitForUninterruptibly
awaitForUninterruptibly in interface DetectFuturepublic boolean isDone()
DetectFutureisDone
isDone in interface DetectFuturepublic DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
DetectFutureaddListener
addListener in interface DetectFutureCopyright © 2017. All rights reserved.