@ManagedResource(description="MLLP Producer")
public class MllpTcpServerConsumer
extends org.apache.camel.support.DefaultConsumer
| Constructor and Description |
|---|
MllpTcpServerConsumer(MllpEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnections() |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
MllpConfiguration |
getConfiguration() |
Map<TcpSocketConsumerRunnable,Long> |
getConsumerRunnables() |
MllpEndpoint |
getEndpoint() |
Map<String,Date> |
getLastActivityTimes() |
void |
handleMessageException(String message,
byte[] payload,
Throwable cause) |
void |
handleMessageTimeout(String message,
byte[] payload,
Throwable cause) |
void |
processMessage(byte[] hl7MessageBytes,
TcpSocketConsumerRunnable consumerRunnable) |
void |
resetConnections() |
void |
startAcceptThread(ServerSocket serverSocket) |
void |
startConsumer(Socket clientSocket,
MllpSocketBuffer mllpBuffer) |
void |
validateConsumer(Socket clientSocket) |
createExchange, createUoW, defaultConsumerCallback, doBuild, doInit, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, releaseExchange, setExceptionHandler, setRoute, setRouteId, toStringbuild, doFail, doLifecycleChange, doResume, 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, wait, wait, waitpublic MllpTcpServerConsumer(MllpEndpoint endpoint, org.apache.camel.Processor processor)
@ManagedAttribute(description="Last activity time") public Map<String,Date> getLastActivityTimes()
@ManagedOperation(description="Close Connections") public void closeConnections()
@ManagedOperation(description="Reset Connections") public void resetConnections()
public MllpEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultConsumerprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultConsumerExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultConsumerExceptionprotected void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.DefaultConsumerExceptionpublic void handleMessageTimeout(String message, byte[] payload, Throwable cause)
public void handleMessageException(String message, byte[] payload, Throwable cause)
public MllpConfiguration getConfiguration()
public Map<TcpSocketConsumerRunnable,Long> getConsumerRunnables()
public void validateConsumer(Socket clientSocket)
public void startAcceptThread(ServerSocket serverSocket)
public void startConsumer(Socket clientSocket, MllpSocketBuffer mllpBuffer)
public void processMessage(byte[] hl7MessageBytes,
TcpSocketConsumerRunnable consumerRunnable)
Apache Camel