@ManagedResource(description="MllpTcpServer Consumer")
public class MllpTcpServerConsumer
extends org.apache.camel.impl.DefaultConsumer
Modifier and Type | Field and Description |
---|---|
static int |
SOCKET_STARTUP_TEST_READ_TIMEOUT |
static int |
SOCKET_STARTUP_TEST_WAIT |
Constructor and Description |
---|
MllpTcpServerConsumer(MllpEndpoint endpoint,
org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
boolean |
managedCheckConnection() |
void |
startMllpConsumer() |
void |
stopMllpConsumer() |
createUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public static final int SOCKET_STARTUP_TEST_WAIT
public static final int SOCKET_STARTUP_TEST_READ_TIMEOUT
public MllpTcpServerConsumer(MllpEndpoint endpoint, org.apache.camel.Processor processor)
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultConsumer
Exception
@ManagedOperation(description="Check server connection") public boolean managedCheckConnection()
@ManagedOperation(description="Starts serverSocket thread and waits for requests") public void startMllpConsumer() throws IOException, InterruptedException
IOException
InterruptedException
protected void doStop() throws Exception
doStop
in class org.apache.camel.impl.DefaultConsumer
Exception
@ManagedOperation(description="Stops client threads and serverSocket thread") public void stopMllpConsumer()
Apache Camel