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 
 | 
Map<String,String> | 
getServiceAttributes()
getServiceAttributes 
 | 
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 boolean isServiceDetected()
isServiceDetected
isServiceDetected in interface DetectResultspublic Map<String,String> getServiceAttributes()
getServiceAttributes
getServiceAttributes in interface DetectResultsMap object.public 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 © 2020. All rights reserved.