01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.catalina.tribes;
18:
19: import java.util.Iterator;
20:
21: /**
22: * Channel interface
23: * A managed channel interface gives you access to the components of the channels
24: * such as senders, receivers, interceptors etc for configurations purposes
25: * @author Filip Hanik
26: * @version $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
27: */
28: public interface ManagedChannel extends Channel {
29:
30: /**
31: * Sets the channel sender
32: * @param sender ChannelSender
33: * @see ChannelSender
34: */
35: public void setChannelSender(ChannelSender sender);
36:
37: /**
38: * Sets the channel receiver
39: * @param receiver ChannelReceiver
40: * @see ChannelReceiver
41: */
42: public void setChannelReceiver(ChannelReceiver receiver);
43:
44: /**
45: * Sets the membership service
46: * @param service MembershipService
47: * @see MembershipService
48: */
49: public void setMembershipService(MembershipService service);
50:
51: /**
52: * returns the channel sender
53: * @return ChannelSender
54: * @see ChannelSender
55: */
56: public ChannelSender getChannelSender();
57:
58: /**
59: * returns the channel receiver
60: * @return ChannelReceiver
61: * @see ChannelReceiver
62: */
63: public ChannelReceiver getChannelReceiver();
64:
65: /**
66: * Returns the membership service
67: * @return MembershipService
68: * @see MembershipService
69: */
70: public MembershipService getMembershipService();
71:
72: /**
73: * Returns the interceptor stack
74: * @return Iterator
75: * @see Channel#addInterceptor(ChannelInterceptor)
76: */
77: public Iterator getInterceptors();
78: }
|