Package org.apache.camel.component.avro
Class AvroConfiguration
java.lang.Object
org.apache.camel.component.avro.AvroConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getHost()intgetPort()org.apache.avro.ProtocolbooleanbooleanvoidvoidHostname to usevoidsetMessageName(String messageName) The name of the message to send.voidsetPort(int port) Port number to usevoidsetProtocol(org.apache.avro.Protocol protocol) Avro protocol to usevoidsetProtocolClassName(String protocolClassName) Avro protocol to use defined by the FQN class namevoidsetProtocolLocation(String protocolLocation) Avro protocol locationvoidsetReflectionProtocol(boolean isReflectionProtocol) If the protocol object provided is reflection protocol.voidsetSingleParameter(boolean singleParameter) If true, consumer parameter won't be wrapped into an array.voidsetTransport(String transport) Transport to use, can be either http or nettyvoidsetTransport(AvroTransport transport) Transport to use, can be either http or nettyvoidsetUriAuthority(String uriAuthority) Authority to use (username and password)
-
Constructor Details
-
AvroConfiguration
public AvroConfiguration()
-
-
Method Details
-
copy
-
parseURI
-
getHost
-
setHost
Hostname to use -
getPort
public int getPort() -
setPort
public void setPort(int port) Port number to use -
getProtocol
public org.apache.avro.Protocol getProtocol() -
setProtocol
public void setProtocol(org.apache.avro.Protocol protocol) Avro protocol to use -
getTransport
-
setTransport
Transport to use, can be either http or netty -
setTransport
Transport to use, can be either http or netty -
getProtocolLocation
-
setProtocolLocation
Avro protocol location -
getProtocolClassName
-
setProtocolClassName
Avro protocol to use defined by the FQN class name -
getMessageName
-
setMessageName
The name of the message to send. -
getUriAuthority
-
setUriAuthority
Authority to use (username and password) -
isReflectionProtocol
public boolean isReflectionProtocol() -
setReflectionProtocol
public void setReflectionProtocol(boolean isReflectionProtocol) If the protocol object provided is reflection protocol. Should be used only with protocol parameter because for protocolClassName protocol type will be auto-detected -
isSingleParameter
public boolean isSingleParameter() -
setSingleParameter
public void setSingleParameter(boolean singleParameter) If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies more than one parameter for the message
-