Class CamelBridge
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Clement Escoffier
- See Also:
-
CamelBridge
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCamelBridge(io.vertx.camel.CamelBridge delegate) Create a new instance ofCamelBridgedelegating to the given (non-null) instance ofCamelBridge.CamelBridge(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic CamelBridgeCreates a bridge between Camel endpoints and Vert.xbooleanio.vertx.camel.CamelBridgeGet the delegate instance.inthashCode()static CamelBridgenewInstance(io.vertx.camel.CamelBridge delegate) Creates a new instance of theCamelBridge.io.smallrye.mutiny.Uni<Void>start()Starts the bridge.voidStarts the bridge.Starts the bridge.io.smallrye.mutiny.Uni<Void>stop()Stops the bridge.voidStops the bridge.Stops the bridge.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
CamelBridge
public CamelBridge(io.vertx.camel.CamelBridge delegate) Create a new instance ofCamelBridgedelegating to the given (non-null) instance ofCamelBridge. -
CamelBridge
-
-
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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
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
Unirepresenting 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 aRuntimeException).- See Also:
-
CamelBridge.start()
-
startAndForget
Starts the bridge. The bridge is started asynchronously.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
CamelBridge.start()
-
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
Unirepresenting 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 aRuntimeException).- See Also:
-
CamelBridge.stop()
-
stopAndForget
Stops the bridge. The bridges is stopped asynchronously.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
CamelBridge.stop()
-
create
Creates a bridge between Camel endpoints and Vert.x- Parameters:
vertx- the vert.x instancebridgeOptions- the bridge configuration- Returns:
- the created
CamelBridge. It must be started explicitly.
-
newInstance
Creates a new instance of theCamelBridge. -
hashCode
public int hashCode() -
equals
-
toString
-