@Component(value="vertx")
public class VertxComponent
extends org.apache.camel.support.DefaultComponent
| Constructor and Description |
|---|
VertxComponent() |
VertxComponent(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected void |
doStart() |
protected void |
doStop() |
String |
getHost() |
int |
getPort() |
int |
getTimeout() |
io.vertx.core.Vertx |
getVertx() |
io.vertx.core.impl.VertxBuilder |
getVertxFactory() |
io.vertx.core.VertxOptions |
getVertxOptions() |
void |
setHost(String host)
Hostname for creating an embedded clustered EventBus
|
void |
setPort(int port)
Port for creating an embedded clustered EventBus
|
void |
setTimeout(int timeout)
Timeout in seconds to wait for clustered Vertx EventBus to be ready.
|
void |
setVertx(io.vertx.core.Vertx vertx)
To use the given vertx EventBus instead of creating a new embedded EventBus
|
void |
setVertxFactory(io.vertx.core.impl.VertxBuilder vertxFactory)
To use a custom VertxFactory implementation
|
void |
setVertxOptions(io.vertx.core.VertxOptions vertxOptions)
Options to use for creating vertx
|
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic VertxComponent()
public VertxComponent(org.apache.camel.CamelContext context)
public io.vertx.core.impl.VertxBuilder getVertxFactory()
public void setVertxFactory(io.vertx.core.impl.VertxBuilder vertxFactory)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public io.vertx.core.VertxOptions getVertxOptions()
public void setVertxOptions(io.vertx.core.VertxOptions vertxOptions)
public io.vertx.core.Vertx getVertx()
public void setVertx(io.vertx.core.Vertx vertx)
public int getTimeout()
public void setTimeout(int timeout)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultComponentExceptionApache Camel