@ManagedResource(description="MLLP Producer") public class MllpTcpClientProducer extends org.apache.camel.impl.DefaultProducer implements Runnable
Constructor and Description |
---|
MllpTcpClientProducer(MllpEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
protected void |
doStart() |
protected void |
doStop() |
MllpConfiguration |
getConfiguration() |
String |
getConnectionAddress() |
MllpEndpoint |
getEndpoint() |
Date |
getLastActivityTime() |
void |
process(org.apache.camel.Exchange exchange) |
void |
resetConnection() |
void |
run()
Check for idle connection
|
createExchange, createExchange, createExchange, isSingleton, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public MllpTcpClientProducer(MllpEndpoint endpoint) throws SocketException
SocketException
@ManagedAttribute(description="Last activity time") public Date getLastActivityTime()
@ManagedAttribute(description="Connection") public String getConnectionAddress()
@ManagedOperation(description="Close Connection") public void closeConnection()
@ManagedOperation(description="Reset Connection") public void resetConnection()
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultProducer
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.impl.DefaultProducer
Exception
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
public MllpEndpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.impl.DefaultProducer
public MllpConfiguration getConfiguration()
Apache Camel