home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / SingleThreadModel.java < prev    next >
Text File  |  1998-04-21  |  2KB  |  41 lines

  1. /*
  2.  * @(#)SingleThreadModel.java    1.3 97/11/17
  3.  * 
  4.  * Copyright (c) 1995-1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.0
  20.  */
  21.  
  22. package javax.servlet;
  23.  
  24. /**
  25.  * Defines a "single" thread model for servlet execution.
  26.  * This empty interface allows servlet implementers to specify how
  27.  * the system should handle concurrent calls to the same servlet.
  28.  * <p>If the target servlet is flagged with this interface, the servlet 
  29.  * programmer is <strong>guaranteed</strong> that no two threads will execute
  30.  * concurrently the <tt>service</tt> method of that servlet. This guarantee 
  31.  * is ensured by maintaining a pool of servlet instances for each such servlet, 
  32.  * and dispatching each <tt>service</tt> call to a <em>free</em> servlet.
  33.  * <p>In essence, if the servlet implements this interface, the servlet will
  34.  * be thread safe.
  35.  *
  36.  * @version     1.3, 11/17/97
  37.  */
  38.  
  39. public interface SingleThreadModel {
  40. }
  41.