Class CamelBridge

java.lang.Object
io.vertx.mutiny.camel.CamelBridge
All Implemented Interfaces:
MutinyDelegate

public class CamelBridge extends Object implements MutinyDelegate
Camel Bridge facade.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Clement Escoffier
See Also:
  • CamelBridge
  • Field Details

  • Constructor Details

    • CamelBridge

      public CamelBridge(io.vertx.camel.CamelBridge delegate)
      Create a new instance of CamelBridge delegating to the given (non-null) instance of CamelBridge.
    • CamelBridge

      public CamelBridge(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.camel.CamelBridge 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
    • start

      @CheckReturnValue public io.smallrye.mutiny.Uni<Void> start()
      Starts the bridge. The bridge is started asynchronously.

      Unlike the bare Vert.x variant, this method returns a Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.

      Don't forget to subscribe on it to trigger the operation.

      Returns:
      A Uni representing the asynchronous result of this operation.
      See Also:
      • CamelBridge.start()
    • startAndAwait

      public void startAndAwait()
      Starts the bridge. The bridge is started asynchronously.

      Unlike the bare Vert.x variant, this method returns a Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      See Also:
      • CamelBridge.start()
    • startAndForget

      public CamelBridge startAndForget()
      Starts the bridge. The bridge is started asynchronously.

      Unlike the bare Vert.x variant, this method ignores the Void result or any failure.

      Returns:
      The current instance to chain operations if needed.
      See Also:
      • CamelBridge.start()
    • stop

      @CheckReturnValue public io.smallrye.mutiny.Uni<Void> stop()
      Stops the bridge. The bridges is stopped asynchronously.

      Unlike the bare Vert.x variant, this method returns a Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.

      Don't forget to subscribe on it to trigger the operation.

      Returns:
      A Uni representing the asynchronous result of this operation.
      See Also:
      • CamelBridge.stop()
    • stopAndAwait

      public void stopAndAwait()
      Stops the bridge. The bridges is stopped asynchronously.

      Unlike the bare Vert.x variant, this method returns a Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      See Also:
      • CamelBridge.stop()
    • stopAndForget

      public CamelBridge stopAndForget()
      Stops the bridge. The bridges is stopped asynchronously.

      Unlike the bare Vert.x variant, this method ignores the Void result or any failure.

      Returns:
      The current instance to chain operations if needed.
      See Also:
      • CamelBridge.stop()
    • create

      public static CamelBridge create(Vertx vertx, io.vertx.camel.CamelBridgeOptions bridgeOptions)
      Creates a bridge between Camel endpoints and Vert.x
      Parameters:
      vertx - the vert.x instance
      bridgeOptions - the bridge configuration
      Returns:
      the created CamelBridge. It must be started explicitly.
    • newInstance

      public static CamelBridge newInstance(io.vertx.camel.CamelBridge delegate)
      Creates a new instance of the CamelBridge.
    • 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