public interface DetectFuture extends DetectResults
DetectFuture interface.
Modifier and Type | Method and Description |
---|---|
DetectFuture |
addListener(DetectFutureListener<DetectFuture> listener)
addListener
|
void |
awaitFor()
awaitFor
|
void |
awaitForUninterruptibly()
awaitForUninterruptibly
|
Throwable |
getException()
getException
|
boolean |
isDone()
isDone
|
void |
setException(Throwable throwable)
setException
|
void |
setServiceDetected(boolean serviceDetected)
setServiceDetected
|
getServiceAttributes, isServiceDetected
void setServiceDetected(boolean serviceDetected)
setServiceDetected
serviceDetected
- a boolean.void setException(Throwable throwable)
setException
throwable
- a Throwable
object.void awaitFor() throws InterruptedException
awaitFor
InterruptedException
void awaitForUninterruptibly()
awaitForUninterruptibly
boolean isDone()
isDone
DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
addListener
Copyright © 2021. All rights reserved.