@Component(value="avro")
public class AvroComponent
extends org.apache.camel.support.DefaultComponent
| Constructor and Description |
|---|
AvroComponent() |
AvroComponent(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)
A factory method allowing derived components to create a new endpoint from the given URI, remaining path and
optional parameters
|
AvroConfiguration |
getConfiguration() |
void |
register(String uri,
String messageName,
AvroConsumer consumer)
Registers new responder with uri as key.
|
void |
setConfiguration(AvroConfiguration configuration)
To use a shared
AvroConfiguration to configure options once |
void |
unregister(String uri,
String messageName)
Calls unregister of consumer by appropriate message name.
|
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, doStart, doStop, 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 AvroComponent()
public AvroComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponenturi - the full URI of the endpointremaining - the remaining part of the URI without the query parameters or component prefixparameters - the optional parameters passed inExceptionpublic void register(String uri, String messageName, AvroConsumer consumer) throws Exception
uri - URI of the endpoint without message namemessageName - message nameconsumer - consumer that will be registered in providers` registryExceptionpublic void unregister(String uri, String messageName)
uri - URI of the endpoint without message namemessageName - message namepublic AvroConfiguration getConfiguration()
public void setConfiguration(AvroConfiguration configuration)
AvroConfiguration to configure options onceApache Camel