01: /*
02: * Copyright 2004,2005 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: package org.wso2.esb.services.tos;
17:
18: import org.apache.synapse.endpoints.utils.EndpointDefinition;
19:
20: /**
21: *
22: *
23: */
24:
25: public class AddressEndpointData implements EndpointData {
26:
27: private int type = 0;
28:
29: private String name;
30:
31: private long suspendDurationOnFailure;
32:
33: private EndpointDefinition endpointDefinition;
34:
35: public AddressEndpointData() {
36:
37: }
38:
39: public EndpointDefinition getEndpointDefinition() {
40: return endpointDefinition;
41: }
42:
43: public void setEndpointDefinition(
44: EndpointDefinition endpointDefinition) {
45: this .endpointDefinition = endpointDefinition;
46: }
47:
48: public int getType() {
49: return type;
50: }
51:
52: public void setType(int type) {
53: this .type = type;
54: }
55:
56: public String getName() {
57: return name;
58: }
59:
60: public void setName(String name) {
61: this .name = name;
62: }
63:
64: public long getSuspendDurationOnFailure() {
65: return suspendDurationOnFailure;
66: }
67:
68: public void setSuspendDurationOnFailure(
69: long suspendDurationOnFailure) {
70: this.suspendDurationOnFailure = suspendDurationOnFailure;
71: }
72: }
|