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:
18: package org.apache.catalina.ha.tcp;
19:
20: import org.apache.catalina.tribes.Member;
21:
22: /**
23: * @author Peter Rossbach
24: * @version $Revision: 531303 $ $Date: 2007-04-23 02:24:01 +0200 (lun., 23 avr. 2007) $
25: */
26: public class SendMessageData {
27:
28: private Object message;
29: private Member destination;
30: private Exception exception;
31:
32: /**
33: * @param message
34: * @param destination
35: * @param exception
36: */
37: public SendMessageData(Object message, Member destination,
38: Exception exception) {
39: super ();
40: this .message = message;
41: this .destination = destination;
42: this .exception = exception;
43: }
44:
45: /**
46: * @return Returns the destination.
47: */
48: public Member getDestination() {
49: return destination;
50: }
51:
52: /**
53: * @param destination The destination to set.
54: */
55: public void setDestination(Member destination) {
56: this .destination = destination;
57: }
58:
59: /**
60: * @return Returns the exception.
61: */
62: public Exception getException() {
63: return exception;
64: }
65:
66: /**
67: * @param exception The exception to set.
68: */
69: public void setException(Exception exception) {
70: this .exception = exception;
71: }
72:
73: /**
74: * @return Returns the message.
75: */
76: public Object getMessage() {
77: return message;
78: }
79:
80: /**
81: * @param message The message to set.
82: */
83: public void setMessage(Object message) {
84: this.message = message;
85: }
86: }
|