public interface Initiator
Modifier and Type | Method and Description |
---|---|
Message |
sendAndReceive(Message outgoing)
Sends a message to a server and waits for the response
|
void |
setTimeout(long timeout,
TimeUnit timeUnit)
Sets the time that the initiator will wait for a
response for a given message before timing out and throwing an exception
(default is 10 seconds).
|
void |
setTimeoutMillis(int timeout)
Deprecated.
|
Message sendAndReceive(Message outgoing) throws HL7Exception, LLPException, IOException
outgoing
- outgoing messageHL7Exception
LLPException
IOException
void setTimeout(long timeout, TimeUnit timeUnit)
timeout
- time durationtimeUnit
- time unitvoid setTimeoutMillis(int timeout)
setTimeout(long, java.util.concurrent.TimeUnit)
}timeout
- time in millisecondsCopyright © 2001–2017 University Health Network. All rights reserved.