public class DetectorFutureImpl extends Object implements DetectFuture
DetectResults
future with DetectFuture
Constructor and Description |
---|
DetectorFutureImpl(CompletableFuture<org.opennms.integration.api.v1.detectors.DetectResults> future) |
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() |
boolean |
isDone()
isDone
|
boolean |
isServiceDetected() |
void |
setException(Throwable throwable)
setException
|
void |
setServiceDetected(boolean serviceDetected)
setServiceDetected
|
public DetectorFutureImpl(CompletableFuture<org.opennms.integration.api.v1.detectors.DetectResults> future)
public Throwable getException()
DetectFuture
getException
getException
in interface DetectFuture
Throwable
object.public void setServiceDetected(boolean serviceDetected)
DetectFuture
setServiceDetected
setServiceDetected
in interface DetectFuture
serviceDetected
- a boolean.public void setException(Throwable throwable)
DetectFuture
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 boolean isDone()
DetectFuture
isDone
isDone
in interface DetectFuture
public DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
DetectFuture
addListener
addListener
in interface DetectFuture
public boolean isServiceDetected()
isServiceDetected
in interface DetectResults
public Map<String,String> getServiceAttributes()
getServiceAttributes
in interface DetectResults
Copyright © 2021. All rights reserved.