Package io.vertx.ext.consul
Interface WatchResult<T>
-
public interface WatchResult<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Throwable
cause()
A Throwable describing failure.boolean
failed()
Did it fail?T
nextResult()
The next result of the operation.T
prevResult()
The previous result of the operation.boolean
succeeded()
Did it succeed?
-
-
-
Method Detail
-
prevResult
T prevResult()
The previous result of the operation.- Returns:
- the previous result.
-
nextResult
T nextResult()
The next result of the operation. This will be null if the operation failed.- Returns:
- the next result or null if the operation failed.
-
cause
Throwable cause()
A Throwable describing failure. This will be null if the operation succeeded.- Returns:
- the cause or null if the operation succeeded.
-
succeeded
boolean succeeded()
Did it succeed?- Returns:
- true if it succeded or false otherwise
-
failed
boolean failed()
Did it fail?- Returns:
- true if it failed or false otherwise
-
-