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, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDone
public DetectFutureMinaImpl(AsyncServiceDetector detector)
Constructor for DefaultDetectFuture.
detector
- a AsyncServiceDetector
object.public boolean isServiceDetected()
isServiceDetected
isServiceDetected
in interface DetectResults
public Map<String,String> getServiceAttributes()
getServiceAttributes
getServiceAttributes
in interface DetectResults
Map
object.public Throwable getException()
getException
getException
in interface DetectFuture
Throwable
object.public void setServiceDetected(boolean serviceDetected)
setServiceDetected
setServiceDetected
in interface DetectFuture
serviceDetected
- a boolean.public void setException(Throwable throwable)
setException
setException
in interface DetectFuture
throwable
- a Throwable
object.public void awaitFor() throws InterruptedException
DetectFuture
awaitFor
awaitFor
in interface DetectFuture
InterruptedException
public void awaitForUninterruptibly()
DetectFuture
awaitForUninterruptibly
awaitForUninterruptibly
in interface DetectFuture
public DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
DetectFuture
addListener
addListener
in interface DetectFuture
Copyright © 2021. All rights reserved.