001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: /*
038: * SequenceSettings.java
039: *
040: *
041: * @author Mike Grogan
042: * Created on January 19, 2007, 8:59 AM
043: *
044: */
045:
046: package com.sun.xml.ws.api.rm;
047:
048: import com.sun.xml.ws.api.SOAPVersion;
049: import com.sun.xml.ws.rm.RMConstants;
050: import com.sun.xml.ws.rm.RMVersion;
051:
052: import java.io.Serializable;
053:
054: /**
055: * Initialization data for a sequence, which can be persisted
056: * and used to reinitialize a sequence.
057: */
058: public class SequenceSettings implements Serializable {
059:
060: public SequenceSettings() {
061: }
062:
063: /**
064: * AcksTo URI for the sequence
065: */
066: public String acksTo;
067:
068: /**
069: * For OutboundSequences, determines whether destination guarantees ordered delivery.
070: */
071: public boolean ordered;
072:
073: /**
074: * Number of milliseconds after which destination may terminate sequence.
075: */
076: public long inactivityTimeout;
077:
078: /**
079: * Indicates whether flow control is enabled.
080: */
081: public boolean flowControl;
082:
083: /**
084: * Number of messages that destination will buffer pending delivery.
085: */
086: public int bufferSize;
087:
088: /**
089: * The SOAPVersion which will be passed on to the protocol elements
090: * populated from the Pipe
091: */
092: public SOAPVersion soapVersion;
093:
094: /**
095: * Length of time between resends
096: */
097: public long resendInterval;
098:
099: /**
100: * Length of time between ackRequests.
101: */
102: public long ackRequestInterval;
103:
104: /**
105: * Lenth of time that RMClientPipe.preDestroy will block while
106: * waiting for unacknowledged messages to arrive.
107: */
108: public long closeTimeout;
109:
110: /**
111: * Do we suppress duplicates at the endpoint?
112: */
113: public boolean allowDuplicates;
114:
115: /**
116: * RMConstants enum value using correct addressing version.
117: */
118: public RMConstants constants;
119:
120: /**
121: * SequenceId for the sequence. This field is not assumed to be populated
122: * in the (@link SequenceConfig} subclass.
123: */
124: public String sequenceId;
125:
126: /**
127: * SequenceId for the companion sequence, if any. This field is not assumed
128: * to be populated in the (@link SequenceConfig} subclass.
129: */
130: public String companionSequenceId;
131:
132: /**
133: * The RM version if it is WSRM 1.0 or WSRM 1.1
134: */
135: public RMVersion rmVersion;
136:
137: /**
138: * SequenceSTR setting from Policy.
139: */
140: public boolean sequenceSTR;
141:
142: /**
143: * SequenceTransportSecurity setting from Policy.
144: */
145: public boolean sequenceTransportSecurity;
146: }
|