Package io.vertx.mutiny.ext.consul
Class WatchResult<T>
java.lang.Object
io.vertx.mutiny.ext.consul.WatchResult<T>
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface.- See Also:
-
WatchResult
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWatchResult(io.vertx.ext.consul.WatchResult<T> delegate) Create a new instance ofWatchResultdelegating to the given (non-null) instance ofWatchResult.WatchResult(io.vertx.ext.consul.WatchResult<T> delegate, TypeArg<T> typeArg_0) WatchResult(Object delegate, TypeArg<T> typeArg_0) -
Method Summary
Modifier and TypeMethodDescriptioncause()A Throwable describing failure.booleanbooleanfailed()Did it fail?io.vertx.ext.consul.WatchResult<T>Get the delegate instance.inthashCode()static <T> WatchResult<T>newInstance(io.vertx.ext.consul.WatchResult<T> delegate) Creates a new instance of theWatchResult.static <T> WatchResult<T>newInstance(io.vertx.ext.consul.WatchResult<T> delegate, TypeArg<T> typeArg_0) Creates a new instance of theWatchResult.The next result of the operation.The previous result of the operation.booleanDid it succeed?toString()
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
-
Constructor Details
-
WatchResult
Create a new instance ofWatchResultdelegating to the given (non-null) instance ofWatchResult. -
WatchResult
-
WatchResult
-
-
Method Details
-
getDelegate
Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
prevResult
The previous result of the operation.- Returns:
- the previous result.
-
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
A Throwable describing failure. This will be null if the operation succeeded.- Returns:
- the cause or null if the operation succeeded.
-
succeeded
public boolean succeeded()Did it succeed?- Returns:
- true if it succeded or false otherwise
-
failed
public boolean failed()Did it fail?- Returns:
- true if it failed or false otherwise
-
newInstance
Creates a new instance of theWatchResult. -
newInstance
public static <T> WatchResult<T> newInstance(io.vertx.ext.consul.WatchResult<T> delegate, TypeArg<T> typeArg_0) Creates a new instance of theWatchResult. -
hashCode
public int hashCode() -
equals
-
toString
-