Package io.vertx.mutiny.camel
Class CamelBridge
- java.lang.Object
-
- io.vertx.mutiny.camel.CamelBridge
-
public class CamelBridge extends Object
Camel Bridge facade. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<CamelBridge>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description CamelBridge(io.vertx.camel.CamelBridge delegate)CamelBridge(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CamelBridgecreate(Vertx vertx, io.vertx.camel.CamelBridgeOptions bridgeOptions)booleanequals(Object o)io.vertx.camel.CamelBridgegetDelegate()inthashCode()static CamelBridgenewInstance(io.vertx.camel.CamelBridge arg)io.smallrye.mutiny.Uni<Void>start()Starts the bridge.VoidstartAndAwait()Blocking variant ofstart().voidstartAndForget()Variant ofstart()that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>stop()Stops the bridge.VoidstopAndAwait()Blocking variant ofstop().voidstopAndForget()Variant ofstop()that ignores the result of the operation.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<CamelBridge> __TYPE_ARG
-
-
Constructor Detail
-
CamelBridge
public CamelBridge(io.vertx.camel.CamelBridge delegate)
-
CamelBridge
public CamelBridge(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.camel.CamelBridge getDelegate()
-
create
public static CamelBridge create(Vertx vertx, io.vertx.camel.CamelBridgeOptions bridgeOptions)
- Parameters:
vertx- the vert.x instancebridgeOptions- 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
unifiring the result of the operation when completed, or a failure if the operation failed.
-
startAndAwait
public Void startAndAwait()
Blocking variant ofstart().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()
-
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
unifiring the result of the operation when completed, or a failure if the operation failed.
-
stopAndAwait
public Void stopAndAwait()
Blocking variant ofstop().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()
-
newInstance
public static CamelBridge newInstance(io.vertx.camel.CamelBridge arg)
-
-