Package io.vertx.mutiny.camel
Class CamelBridge
java.lang.Object
io.vertx.mutiny.camel.CamelBridge
- All Implemented Interfaces:
MutinyDelegate
Camel Bridge facade.
NOTE: This class has been automatically generated from the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCamelBridge
(io.vertx.camel.CamelBridge delegate) CamelBridge
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic CamelBridge
boolean
io.vertx.camel.CamelBridge
int
hashCode()
static CamelBridge
newInstance
(io.vertx.camel.CamelBridge arg) io.smallrye.mutiny.Uni<Void>
start()
Starts the bridge.Blocking variant ofstart()
.void
Variant ofstart()
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
stop()
Stops the bridge.Blocking variant ofstop()
.void
Variant ofstop()
that ignores the result of the operation.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
CamelBridge
public CamelBridge(io.vertx.camel.CamelBridge delegate) -
CamelBridge
-
-
Method Details
-
getDelegate
public io.vertx.camel.CamelBridge getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- Parameters:
vertx
- the vert.x instancebridgeOptions
- the bridge configuration- Returns:
- the created
CamelBridge
. It must be started explicitly.
-
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
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
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
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
-