blob: 14b54fd3e1a3702298822333db129516ab65f696 [file] [log] [blame]
Michael E. Rodriguezd8af66f2005-12-08 20:55:55 +00001/*
2 * Copyright 1999,2005 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package javax.servlet;
18
19/**
20 * Ensures that servlets handle
21 * only one request at a time. This interface has no methods.
22 *
23 * <p>If a servlet implements this interface, you are <i>guaranteed</i>
24 * that no two threads will execute concurrently in the
25 * servlet's <code>service</code> method. The servlet container
26 * can make this guarantee by synchronizing access to a single
27 * instance of the servlet, or by maintaining a pool of servlet
28 * instances and dispatching each new request to a free servlet.
29 *
30 * <p>This interface does not prevent
31 * synchronization problems that result from servlets accessing shared
32 * resources such as static class variables or classes outside
33 * the scope of the servlet.
34 *
35 *
36 * @author Various
37 * @version $Version$
38 *
39 */
40
41public interface SingleThreadModel {
42}