public class HohClientMultithreaded extends AbstractClient<HohRawClientMultithreaded> implements IClientMultithreaded
Message sender using the HL7 over HTTP specification which uses a
ScheduledExecutorService
to provide advanced functionality such
as persistent connections which time out and close automatically.
This connector uses an executor service which can start worker threads, so use caution if embedding within a J2EE container.
Constructor and Description |
---|
HohClientMultithreaded()
Constructor
|
HohClientMultithreaded(String theHost,
int thePort,
String theUriPath)
Constructor
|
HohClientMultithreaded(String theHost,
int thePort,
String theUriPath,
Parser theParser)
Constructor
|
HohClientMultithreaded(URL theUrl)
Constructor
|
HohClientMultithreaded(URL theUrl,
Parser theParser)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getSocketTimeout()
Returns the number of millis to keep an idle socket open before closing it.
|
void |
setSocketTimeout(long theSocketTimeout)
Sets the number of millis to keep an idle socket open before closing it.
|
getHost, getParser, getPort, getRawClient, getSocketFactory, getSoTimeout, getUriPath, getUrl, getUrlString, isKeepAlive, sendAndReceiveMessage, sendAndReceiveMessage, setAuthorizationCallback, setCharset, setHost, setKeepAlive, setParser, setPort, setResponseTimeout, setSigner, setSocketFactory, setSoTimeout, setUriPath, setUrl, setUrlString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHost, getPort, getSocketFactory, getSoTimeout, getUriPath, getUrl, getUrlString, isKeepAlive, setAuthorizationCallback, setCharset, setHost, setKeepAlive, setPort, setResponseTimeout, setSigner, setSocketFactory, setSoTimeout, setUriPath, setUrl, setUrlString
public HohClientMultithreaded()
public HohClientMultithreaded(String theHost, int thePort, String theUriPath)
theHost
- The HOST (name/address). E.g. "192.168.1.1"thePort
- The PORT. E.g. "8080"theUriPath
- The URI being requested (must either be blank or start with
'/' and contain a path). E.g. "/Apps/Receiver.jsp"public HohClientMultithreaded(String theHost, int thePort, String theUriPath, Parser theParser)
theHost
- The HOST (name/address). E.g. "192.168.1.1"thePort
- The PORT. E.g. "8080"theUriPath
- The URI being requested (must either be blank or start with
'/' and contain a path). E.g. "/Apps/Receiver.jsp"theParser
- The Parser to use, or null
in which case a
PipeParser will be usedpublic HohClientMultithreaded(URL theUrl)
theUrl
- The URL to send messages topublic HohClientMultithreaded(URL theUrl, Parser theParser)
theUrl
- The URL to send messages totheParser
- The Parser to use, or null
in which case a
PipeParser will be usedpublic long getSocketTimeout()
Returns the number of millis to keep an idle socket open before closing it.
getSocketTimeout
in interface IClientMultithreaded
public void setSocketTimeout(long theSocketTimeout)
Sets the number of millis to keep an idle socket open before closing it.
This value may be changed at any time. Default is
HohRawClientMultithreaded.DEFAULT_SOCKET_TIMEOUT
A value of -1 indicates that connections do not time out (use with caution).
Note that this parameter is respected on a best-effort basis, timeouts may be different, especially under heavy load
setSocketTimeout
in interface IClientMultithreaded
Copyright © 2012–2017 University Health Network. All rights reserved.