public class DetectFutureNettyImpl extends Object implements DetectFuture
DetectFutureNettyImpl class.
CAUTION: This class is unused. This implementation has never been in production.| Modifier and Type | Class and Description |
|---|---|
static class |
DetectFutureNettyImpl.ServiceDetectionFailedException |
| Constructor and Description |
|---|
DetectFutureNettyImpl(AsyncBasicDetectorNettyImpl<?,?> detector,
org.jboss.netty.channel.ChannelFuture future)
Constructor for DefaultDetectFuture.
|
| Modifier and Type | Method and Description |
|---|---|
DetectFuture |
addListener(DetectFutureListener<DetectFuture> listener)
addListener
|
void |
awaitFor()
awaitFor
|
void |
awaitForUninterruptibly()
awaitForUninterruptibly
|
Throwable |
getException()
getException
|
Map<String,String> |
getServiceAttributes()
getServiceAttributes
|
boolean |
isDone()
isDone
|
boolean |
isServiceDetected()
isServiceDetected
|
void |
setException(Throwable throwable)
setException
|
void |
setServiceDetected(boolean serviceDetected)
setServiceDetected
|
public DetectFutureNettyImpl(AsyncBasicDetectorNettyImpl<?,?> detector, org.jboss.netty.channel.ChannelFuture future)
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 boolean isDone()
DetectFutureisDone
isDone in interface DetectFuturepublic DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
DetectFutureaddListener
addListener in interface DetectFutureCopyright © 2020. All rights reserved.