View Javadoc

1   /*
2    *  Licensed to the Apache Software Foundation (ASF) under one
3    *  or more contributor license agreements.  See the NOTICE file
4    *  distributed with this work for additional information
5    *  regarding copyright ownership.  The ASF licenses this file
6    *  to you under the Apache License, Version 2.0 (the
7    *  "License"); you may not use this file except in compliance
8    *  with the License.  You may obtain a copy of the License at
9    *
10   *    http://www.apache.org/licenses/LICENSE-2.0
11   *
12   *  Unless required by applicable law or agreed to in writing,
13   *  software distributed under the License is distributed on an
14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   *  KIND, either express or implied.  See the License for the
16   *  specific language governing permissions and limitations
17   *  under the License.
18   *
19   */
20  package org.apache.mina.filter.traffic;
21  
22  import java.util.Collection;
23  
24  import org.apache.mina.common.IoSession;
25  import org.apache.mina.common.WriteException;
26  import org.apache.mina.common.WriteRequest;
27  
28  /**
29   * An exception that is thrown by {@link WriteThrottleFilter} when
30   * there are too many scheduled write requests or too much amount 
31   * of scheduled write data in an {@link IoSession}'s internal write
32   * request queue.
33   * 
34   * @author The Apache MINA Project (dev@mina.apache.org)
35   * @version $Rev: 591600 $, $Date: 2007-11-03 05:32:13 -0600 (Sat, 03 Nov 2007) $
36   */
37  public class WriteFloodException extends WriteException implements IoFloodException {
38  
39      private static final long serialVersionUID = 7377810360950976904L;
40  
41      public WriteFloodException(Collection<WriteRequest> requests,
42              String message, Throwable cause) {
43          super(requests, message, cause);
44      }
45  
46      public WriteFloodException(Collection<WriteRequest> requests,
47              String s) {
48          super(requests, s);
49      }
50  
51      public WriteFloodException(Collection<WriteRequest> requests,
52              Throwable cause) {
53          super(requests, cause);
54      }
55  
56      public WriteFloodException(Collection<WriteRequest> requests) {
57          super(requests);
58      }
59  
60      public WriteFloodException(WriteRequest request,
61              String message, Throwable cause) {
62          super(request, message, cause);
63      }
64  
65      public WriteFloodException(WriteRequest request, String s) {
66          super(request, s);
67      }
68  
69      public WriteFloodException(WriteRequest request, Throwable cause) {
70          super(request, cause);
71      }
72  
73      public WriteFloodException(WriteRequest request) {
74          super(request);
75      }
76  }