ca.uhn.hl7v2.hoh.api.IClientMultithreaded Maven / Gradle / Ivy
package ca.uhn.hl7v2.hoh.api;
import ca.uhn.hl7v2.hoh.raw.client.HohRawClientMultithreaded;
public interface IClientMultithreaded extends IClient {
/**
*
* Sets the number of millis to keep an idle socket open before closing it.
* This value may be changed at any time. Default is
* {@link 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
*
*/
public abstract void setSocketTimeout(long theSocketTimeout);
/**
*
* Returns the number of millis to keep an idle socket open before closing it.
*
*/
public abstract long getSocketTimeout();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy