Constructor and Description |
---|
Receiver(ActiveConnection c,
HL7Reader in)
Creates a new instance of Receiver, associated with the given Connection
|
Modifier and Type | Method and Description |
---|---|
protected void |
handle()
The main task of the thread, called in a loop as long as
Service.isRunning() returns true. |
protected void |
processMessage(String message)
Processes a single incoming message by sending it to the appropriate
internal location.
|
afterStartup, afterTermination, getExecutorService, getServiceExitedWithException, isRunning, prepareTermination, run, setServiceExitedWithException, setShutdownTimeout, start, startAndWait, stop, stopAndWait, waitForTermination
public Receiver(ActiveConnection c, HL7Reader in)
protected void handle()
Service
Service.isRunning()
returns true. Overridden methods are responsible for
yielding or pausing the thread when it's idle. The method must also not
block indefinitely so that a call to Service.stop()
is able to
gracefully terminate the thread.protected void processMessage(String message)
Copyright © 2001–2017 University Health Network. All rights reserved.