|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.avro.AvroListener
public class AvroListener
This class holds server that listen to given protocol:host:port combination and dispatches messages to different routes mapped.
| Constructor Summary | |
|---|---|
AvroListener(AvroEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
void |
register(String messageName,
AvroConsumer consumer)
Registers consumer by appropriate message name as key in registry. |
Object |
respond(org.apache.avro.Protocol.Message message,
Object request,
org.apache.avro.specific.SpecificData data)
|
boolean |
unregister(String messageName)
Unregisters consumer by message name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AvroListener(AvroEndpoint endpoint)
throws Exception
Exception| Method Detail |
|---|
public void register(String messageName,
AvroConsumer consumer)
throws AvroComponentException
messageName - message nameconsumer - avro consumer
AvroComponentExceptionpublic boolean unregister(String messageName)
messageName - message name
public Object respond(org.apache.avro.Protocol.Message message,
Object request,
org.apache.avro.specific.SpecificData data)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||