public class DetectFutureMinaImpl extends org.apache.mina.core.future.DefaultIoFuture implements DetectFuture
DefaultDetectFuture class.
| Constructor and Description |
|---|
DetectFutureMinaImpl(AsyncServiceDetector detector)
Constructor for DefaultDetectFuture.
|
| Modifier and Type | Method and Description |
|---|---|
DetectFuture |
addListener(DetectFutureListener<DetectFuture> listener)
addListener
|
void |
awaitFor()
awaitFor
|
void |
awaitForUninterruptibly()
awaitForUninterruptibly
|
Throwable |
getException()
getException
|
Object |
getObjectValue()
getObjectValue
|
AsyncServiceDetector |
getServiceDetector()
getServiceDetector
|
boolean |
isServiceDetected()
isServiceDetected
|
void |
setException(Throwable throwable)
setException
|
void |
setServiceDetected(boolean serviceDetected)
setServiceDetected
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getSession, getValue, isDone, join, join, removeListener, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDonepublic DetectFutureMinaImpl(AsyncServiceDetector detector)
Constructor for DefaultDetectFuture.
detector - a AsyncServiceDetector object.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)
setServiceDetected
setServiceDetected in interface DetectFutureserviceDetected - a boolean.public void setException(Throwable throwable)
setException
setException in interface DetectFuturethrowable - a Throwable object.public void awaitFor()
throws InterruptedException
DetectFutureawaitFor
awaitFor in interface DetectFutureInterruptedExceptionpublic void awaitForUninterruptibly()
DetectFutureawaitForUninterruptibly
awaitForUninterruptibly in interface DetectFuturepublic DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
DetectFutureaddListener
addListener in interface DetectFutureCopyright © 2017. All rights reserved.