001package ca.uhn.hl7v2.hoh.api; 002 003import ca.uhn.hl7v2.hoh.raw.client.HohRawClientMultithreaded; 004 005public interface IClientMultithreaded extends IClient { 006 007 /** 008 * <p> 009 * Sets the number of millis to keep an idle socket open before closing it. 010 * This value may be changed at any time. Default is 011 * {@link HohRawClientMultithreaded#DEFAULT_SOCKET_TIMEOUT} 012 * </p> 013 * <p> 014 * A value of -1 indicates that connections do not time out (use with caution). 015 * </p> 016 * <p> 017 * Note that this parameter is respected on a best-effort basis, timeouts 018 * may be different, especially under heavy load 019 * </p> 020 */ 021 public abstract void setSocketTimeout(long theSocketTimeout); 022 023 /** 024 * <p> 025 * Returns the number of millis to keep an idle socket open before closing it. 026 * </p> 027 */ 028 public abstract long getSocketTimeout(); 029 030}