/[Apache-SVN]/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/ListMediator.java
ViewVC logotype

Contents of /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/ListMediator.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 702579 - (show annotations)
Tue Oct 7 18:38:44 2008 UTC (13 months, 2 weeks ago) by asankha
File size: 2827 byte(s)
Completely Fix 
SYNAPSE-404 - Synpase is blocked and does not deliver responses
SYNAPSE-460 -Transfer encoding already present - when ?wsdl, ?xsd etc causes errors with the NIO transport
SYNAPSE-461 - AggregateMediator - completion must run on a new thread from the Synapse pool instead of on the Timer
SYNAPSE-462 - A message being read could be corrupted when its socket closes, but even after it has been fully read into buffers
SYNAPSE-463 - It must be possible to use sub-second timeout values
SYNAPSE-464 - HTTP 1.0 Connection: close headers could cause a close event to be triggered before processing of the message finishes
SYNAPSE-465 - JMX monitoring and management of endpoints
SYNAPSE-466 - Dynamic setup of suspendDurationOnFailure
SYNAPSE-468 - Thread leakage after graceful JMX restart
SYNAPSE-469 - ClientWorker Unexpected response received. HTTP response code : 200
SYNAPSE-470 - Expiring keep-alive connections can cause thread hangs
SYNAPSE-471 - ClientHandler - onConnect and submitRequest encountering an Exception could lead to ServerWorker hangs
SYNAPSE-472 - Occasionally loosing response for hosted service within Synapse

Partly fix (with another commit to follow)
SYNAPSE-341 - System unstable when HTTP response returned before request fully written
SYNAPSE-344 - Race condition on connection reuse causes 'Request already submitted' exception

TODO
Fix code where "TODO FIX-RUWAN" is inserted to apply patch from Azeez against new Endpoints code
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.synapse.mediators;
21
22 import org.apache.synapse.ManagedLifecycle;
23 import org.apache.synapse.Mediator;
24
25 import java.util.List;
26
27 /**
28 * The List mediator executes a given sequence/list of child mediators.
29 * <p>
30 * This interface extends {@link ManagedLifecycle}. An implementations must
31 * propagate lifecycle events to all children implementing the ManagedLifecycle
32 * interface.
33 */
34 public interface ListMediator extends Mediator, ManagedLifecycle {
35
36 /**
37 * Appends the specified mediator to the end of this mediator's (children) list
38 * @param m the mediator to be added
39 * @return true (as per the general contract of the Collection.add method)
40 */
41 public boolean addChild(Mediator m);
42
43 /**
44 * Appends all of the mediators in the specified collection to the end of this mediator's (children)
45 * list, in the order that they are returned by the specified collection's iterator
46 * @param c the list of mediators to be added
47 * @return true if this list changed as a result of the call
48 */
49 public boolean addAll(List<Mediator> c);
50
51 /**
52 * Returns the mediator at the specified position
53 * @param pos index of mediator to return
54 * @return the mediator at the specified position in this list
55 */
56 public Mediator getChild(int pos);
57
58 /**
59 * Removes the first occurrence in this list of the specified mediator
60 * @param m mediator to be removed from this list, if present
61 * @return true if this list contained the specified mediator
62 */
63 public boolean removeChild(Mediator m);
64
65 /**
66 * Removes the mediator at the specified position in this list
67 * @param pos the index of the mediator to remove
68 * @return the mediator previously at the specified position
69 */
70 public Mediator removeChild(int pos);
71
72 /**
73 * Return the list of mediators of this List mediator instance
74 * @return the child/sub mediator list
75 */
76 public List<Mediator> getList();
77 }

Properties

Name Value
svn:eol-style native

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2