1 package ca.uhn.hl7v2.hoh.api; 2 3 import ca.uhn.hl7v2.hoh.raw.client.HohRawClientMultithreaded; 4 5 public interface IClientMultithreaded extends IClient { 6 7 /** 8 * <p> 9 * Sets the number of millis to keep an idle socket open before closing it. 10 * This value may be changed at any time. Default is 11 * {@link HohRawClientMultithreaded#DEFAULT_SOCKET_TIMEOUT} 12 * </p> 13 * <p> 14 * A value of -1 indicates that connections do not time out (use with caution). 15 * </p> 16 * <p> 17 * Note that this parameter is respected on a best-effort basis, timeouts 18 * may be different, especially under heavy load 19 * </p> 20 */ 21 public abstract void setSocketTimeout(long theSocketTimeout); 22 23 /** 24 * <p> 25 * Returns the number of millis to keep an idle socket open before closing it. 26 * </p> 27 */ 28 public abstract long getSocketTimeout(); 29 30 }