| |
|
| java.lang.Object com.sun.xml.ws.rm.Sequence
All known Subclasses: com.sun.xml.ws.rm.jaxws.runtime.InboundSequence, com.sun.xml.ws.rm.jaxws.runtime.OutboundSequence,
Sequence | public class Sequence (Code) | | A Sequence is a sparse array of messages corresponding to an RM Sequence. It
is implemented as an ArrayList with nulls at unfilled indices.
|
Method Summary | |
public synchronized Message | get(int index) Gets the Message at the specified index. | public String | getId() | protected long | getLastActivityTime() Accessor for lastActivityTime field. | public synchronized int | getNextIndex() Accessor for the nextIndex field. | public SequenceConfig | getSequenceConfig() Accessor for SequenceConfig field. | public synchronized boolean | isClosed() | protected boolean | isGettingClose(long elapsedTime, long timeLimit) Return value determines whether elapsed time is close enough to
time limit to pull the trigger and send an ackRequested to keep the
sequence alive. | public synchronized boolean | isLast() | public void | resetLastActivityTime() Resets lastActivityTime field to current time. | public synchronized int | set(int i, Message m) Adds a Message to the Sequence at a specified indes. | public synchronized void | setClosed() Sets the last flag. | public void | setId(String id) Sets the sequence identifier. | public synchronized void | setLast() Sets the last flag. |
allowDuplicates | protected boolean allowDuplicates(Code) | | |
closed | protected boolean closed(Code) | | Flag that indicates if the CloseSequence message has been sent/received
If this is the case then the Sequence needs to be closed and no more messages
with that Sequence Id should be accepted
|
firstKnownGap | protected int firstKnownGap(Code) | | |
last | protected boolean last(Code) | | Flag indicates that message with Sequence header containing
Last element has been sent/received. If this is the case,
SequenceAcknowledgements for the sequence may contain acks
for a message is one greater than the index for the last
message in the sequence.
|
lastActivityTime | protected long lastActivityTime(Code) | | Last accesse time.
|
maxMessages | protected int maxMessages(Code) | | Maximum number of stored messages. Used for server-side sequences
for which flow control is enabled. The value -1 indicates that
there is no limit.
|
nextIndex | protected int nextIndex(Code) | | The smallest unfilled index.
|
rmConstants | protected RMConstants rmConstants(Code) | | RMConstants associated with each Sequence which
will give information regarding addressing version, JAXBContext etc
|
storedMessages | protected int storedMessages(Code) | | Number of messages currently being stored awaiting completion.
|
Sequence | public Sequence()(Code) | | |
getId | public String getId()(Code) | | Gets the sequence identifier
The sequence identifier. |
getLastActivityTime | protected long getLastActivityTime()(Code) | | Accessor for lastActivityTime field.
The value of the field. |
getNextIndex | public synchronized int getNextIndex()(Code) | | Accessor for the nextIndex field.
The value of the nextIndex field |
isClosed | public synchronized boolean isClosed()(Code) | | |
isGettingClose | protected boolean isGettingClose(long elapsedTime, long timeLimit)(Code) | | Return value determines whether elapsed time is close enough to
time limit to pull the trigger and send an ackRequested to keep the
sequence alive.
Parameters: elapsedTime - Elapsed time since last reset. Parameters: timeLimit - Maximum time to wait |
isLast | public synchronized boolean isLast()(Code) | | |
resetLastActivityTime | public void resetLastActivityTime()(Code) | | Resets lastActivityTime field to current time.
|
set | public synchronized int set(int i, Message m) throws InvalidMessageNumberException, BufferFullException, DuplicateMessageException(Code) | | Adds a Message to the Sequence at a specified indes. The index must be
positive. If the index is larger than the nextIndex field, nulls are inserted
between the largest index used and the index, and the index becomes the new
value of the nextIndex field
Parameters: i - The index at which to insert the message. Parameters: m - The message to insert The new value of nextIndex. |
setClosed | public synchronized void setClosed()(Code) | | Sets the last flag.
|
setId | public void setId(String id)(Code) | | Sets the sequence identifier.
Parameters: id - The sequence identifier. |
setLast | public synchronized void setLast()(Code) | | Sets the last flag.
|
|
|
|