Class WatchResult<T>

java.lang.Object
io.vertx.mutiny.ext.consul.WatchResult<T>
All Implemented Interfaces:
MutinyDelegate

public class WatchResult<T> extends Object implements MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
See Also:
  • WatchResult
  • Field Details

  • Constructor Details

    • WatchResult

      public WatchResult(io.vertx.ext.consul.WatchResult<T> delegate)
      Create a new instance of WatchResult delegating to the given (non-null) instance of WatchResult.
    • WatchResult

      public WatchResult(io.vertx.ext.consul.WatchResult<T> delegate, TypeArg<T> typeArg_0)
    • WatchResult

      public WatchResult(Object delegate, TypeArg<T> typeArg_0)
  • Method Details

    • getDelegate

      public io.vertx.ext.consul.WatchResult<T> 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:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • prevResult

      public T prevResult()
      The previous result of the operation.
      Returns:
      the previous result.
    • nextResult

      public 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

      public Throwable 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

      public static <T> WatchResult<T> newInstance(io.vertx.ext.consul.WatchResult<T> delegate)
      Creates a new instance of the WatchResult.
    • newInstance

      public static <T> WatchResult<T> newInstance(io.vertx.ext.consul.WatchResult<T> delegate, TypeArg<T> typeArg_0)
      Creates a new instance of the WatchResult.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object