@UriEndpoint(scheme="mllp", title="mllp", syntax="mllp:hostname:port", consumerClass=MllpTcpServerConsumer.class, label="mllp") public class MllpEndpoint extends org.apache.camel.impl.DefaultEndpoint
Modifier and Type | Field and Description |
---|---|
static char |
END_OF_BLOCK |
static char |
END_OF_DATA |
static int |
END_OF_STREAM |
static char |
MESSAGE_TERMINATOR |
static char |
SEGMENT_DELIMITER |
static char |
START_OF_BLOCK |
Constructor and Description |
---|
MllpEndpoint(String uri,
MllpComponent component) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
createExchange(org.apache.camel.Exchange exchange) |
org.apache.camel.Exchange |
createExchange(org.apache.camel.ExchangePattern exchangePattern) |
org.apache.camel.Producer |
createProducer() |
int |
getAcceptTimeout() |
int |
getBacklog() |
int |
getBindRetryInterval() |
int |
getBindTimeout() |
String |
getCharsetName() |
int |
getConnectTimeout() |
org.apache.camel.ExchangePattern |
getExchangePattern() |
String |
getHostname() |
int |
getPort() |
int |
getReceiveBufferSize() |
int |
getReceiveTimeout() |
int |
getSendBufferSize() |
boolean |
isAutoAck() |
boolean |
isKeepAlive() |
boolean |
isReuseAddress() |
boolean |
isSingleton() |
boolean |
isSynchronous() |
boolean |
isTcpNoDelay() |
void |
setAcceptTimeout(int acceptTimeout)
Timeout value while waiting for a TCP connection
TCP Server Only
|
void |
setAutoAck(boolean autoAck)
Enable/Disable the automatic generation of a MLLP Acknowledgement
MLLP Consumers only
|
void |
setBacklog(int backlog)
The maximum queue length for incoming connection indications (a request to connect) is set to the backlog parameter.
|
void |
setBindRetryInterval(int bindRetryInterval)
TCP Server Only - The number of milliseconds to wait between bind attempts
|
void |
setBindTimeout(int bindTimeout)
TCP Server Only - The number of milliseconds to retry binding to a server port
|
void |
setCharsetName(String charsetName)
Set the CamelCharsetName property on the exchange
|
void |
setConnectTimeout(int connectTimeout)
Timeout value for establishing for a TCP connection
TCP Client only
|
void |
setHostname(String hostname)
Hostname or IP for connection for the TCP connection.
|
void |
setKeepAlive(boolean keepAlive)
Enable/disable the SO_KEEPALIVE socket option.
|
void |
setPort(int port)
Port number for the TCP connection
|
void |
setReceiveBufferSize(Integer receiveBufferSize)
Sets the SO_RCVBUF option to the specified value
|
void |
setReceiveTimeout(int receiveTimeout)
The SO_TIMEOUT value used when waiting for the start of an MLLP frame
|
void |
setReuseAddress(boolean reuseAddress)
Enable/disable the SO_REUSEADDR socket option.
|
void |
setSendBufferSize(Integer sendBufferSize)
Sets the SO_SNDBUF option to the specified value
|
void |
setTcpNoDelay(boolean tcpNoDelay)
Enable/disable the TCP_NODELAY socket option.
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public static final char START_OF_BLOCK
public static final char END_OF_BLOCK
public static final char END_OF_DATA
public static final int END_OF_STREAM
public static final char SEGMENT_DELIMITER
public static final char MESSAGE_TERMINATOR
public MllpEndpoint(String uri, MllpComponent component)
public org.apache.camel.ExchangePattern getExchangePattern()
getExchangePattern
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern exchangePattern)
createExchange
in interface org.apache.camel.Endpoint
createExchange
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Exchange createExchange(org.apache.camel.Exchange exchange)
createExchange
in interface org.apache.camel.Endpoint
createExchange
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public boolean isSynchronous()
isSynchronous
in class org.apache.camel.impl.DefaultEndpoint
public boolean isSingleton()
public String getCharsetName()
public void setCharsetName(String charsetName)
charsetName
- the charsetpublic String getHostname()
public void setHostname(String hostname)
hostname
- Hostname or IPpublic int getPort()
public void setPort(int port)
port
- TCP portpublic int getBacklog()
public void setBacklog(int backlog)
public int getBindTimeout()
public void setBindTimeout(int bindTimeout)
public int getBindRetryInterval()
public void setBindRetryInterval(int bindRetryInterval)
public int getAcceptTimeout()
public void setAcceptTimeout(int acceptTimeout)
acceptTimeout
- timeout in millisecondspublic int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
connectTimeout
- timeout in millisecondspublic int getReceiveTimeout()
public void setReceiveTimeout(int receiveTimeout)
receiveTimeout
- timeout in millisecondspublic boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive
- enable SO_KEEPALIVE when true; otherwise disable SO_KEEPALIVEpublic boolean isTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay
- enable TCP_NODELAY when true; otherwise disable TCP_NODELAYpublic boolean isReuseAddress()
public void setReuseAddress(boolean reuseAddress)
reuseAddress
- enable SO_REUSEADDR when true; otherwise disable SO_REUSEADDRpublic int getReceiveBufferSize()
public void setReceiveBufferSize(Integer receiveBufferSize)
receiveBufferSize
- the SO_RCVBUF option value. If null, the system default is usedpublic int getSendBufferSize()
public void setSendBufferSize(Integer sendBufferSize)
sendBufferSize
- the SO_SNDBUF option value. If null, the system default is usedpublic boolean isAutoAck()
public void setAutoAck(boolean autoAck)
autoAck
- enabled if true, otherwise disabledApache Camel