Class CamelBridge


  • public class CamelBridge
    extends Object
    Camel Bridge facade.

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

    • Constructor Detail

      • CamelBridge

        public CamelBridge​(io.vertx.camel.CamelBridge delegate)
      • CamelBridge

        public CamelBridge​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.camel.CamelBridge getDelegate()
      • hashCode

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

        public static CamelBridge create​(Vertx vertx,
                                         io.vertx.camel.CamelBridgeOptions bridgeOptions)
        Parameters:
        vertx - the vert.x instance
        bridgeOptions - the bridge configuration
        Returns:
        the created CamelBridge. It must be started explicitly.
      • start

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

        Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

        Returns:
        the uni firing the result of the operation when completed, or a failure if the operation failed.
      • startAndAwait

        public Void startAndAwait()
        Blocking variant of start().

        This method waits 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).

        Returns:
        the Void instance produced by the operation.
      • startAndForget

        public void startAndForget()
        Variant of start() that ignores the result of the operation.

        This method subscribes on the result of start(), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from start() but you don't need to compose it with other operations.

      • stop

        @CheckReturnValue
        public io.smallrye.mutiny.Uni<Void> stop()
        Stops the bridge.

        Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

        Returns:
        the uni firing the result of the operation when completed, or a failure if the operation failed.
      • stopAndAwait

        public Void stopAndAwait()
        Blocking variant of stop().

        This method waits 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).

        Returns:
        the Void instance produced by the operation.
      • stopAndForget

        public void stopAndForget()
        Variant of stop() that ignores the result of the operation.

        This method subscribes on the result of stop(), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from stop() but you don't need to compose it with other operations.

      • newInstance

        public static CamelBridge newInstance​(io.vertx.camel.CamelBridge arg)