getUnackdCount()
Count of requests that have not been acknowledged
on this sequence (ack received for RM source, or ack sent for RM dest)
boolean
isOffer()
Get an indication of whether this sequence is an offer sequence (meaning
it was set up during sequence handshaking to carry responses for a main
sequence).
boolean
isSource()
Get an indication of whether this sequence is a source sequence (used to
send requests) or a destination sequence (used to receive requests).
Sequence creation handshaking is in progress.
Source: From CreateSequence send till CreateSequenceResponse is
fully processed.
Destination: During processing of CreateSequence till
CreateSequenceResponse is sent.
Sequence handshaking is complete. Processing sequence messages.
Source: After processing CreateSequenceResponse until either a
LastMessage is sent, sequence is closed, or sequence is
terminated.
Destination: After CreateSequenceResponse is sent till the sequence
receives LastMessage, CloseSequence, TerminateSequence or
the sequence times out. Timeout will cause the sequence to
be forcibly terminated (in RM 1.1 and beyond this will send
TerminateSequence to the RM source).
Sequence is in the process of being closed. No sequence messages can be
sent or received.
Source: Upon send of CloseSequence until CloseSequenceResponse is
processed.
Destination: Upon receipt of CloseSequence until CloseSequenceResponse is
sent.
Sequence is closed. No sequence messages can
be sent or received.
Source: After CloseSequenceResponse is processed.
Destination: After CloseSequenceResponse is sent.
Sequence is in the process of being terminated. No sequence messages can
be sent or received.
Source: After sending TerminateSequence till
TerminateSequenceResponse is processed.
Destination: After TerminateSequence is received until
TerminateSequenceResponse is sent. Timeout will cause the
sequence to be forcibly terminated (in RM 1.1 and beyond
this will send TerminateSequence to the RM source). Sequence
moves immediately to TERMINATED.
Sequence is terminated. No sequence messages can
be sent or received.
Source: After TerminateSequenceResponse is processed.
Destination: After TerminateSequenceResponse is sent.
Timeout will cause the
sequence to be forcibly terminated (in RM 1.1 and beyond
this will send TerminateSequence to the RM source). Sequence
moves immediately to TERMINATED.
If this is a source sequence (isSource()==true && isOffer() == false)
and this sequence has completed the handshake process
(e.g. state!=NEW && state!=CREATING) then
it is known to the destination/service side by a different ID than the
one given by getId(). This ID is returned in the CreateSequenceResponse
sent by the destination/service and is known as the source sequence's
destination ID. Note, source offer sequences don't have a destination ID
because the source sends the ID with the CreateSequence, and thus both the
source and destination side know the offer by the same ID.
Returns:
The ID used by the destination side to refer to this source
sequence, or null if this is not a source sequence, or the sequence
hasn't completed the handshake process yet.
isOffer
boolean isOffer()
Get an indication of whether this sequence is an offer sequence (meaning
it was set up during sequence handshaking to carry responses for a main
sequence). If true, this indicates this sequence is an offer, and not
otherwise. There are both source and destination flavors of an offer
sequence, so this method should be used in tandem with isSource()
to get full information about the type of this sequence. A source offer
sequence is used to send responses from the service-side of the wire. A
destination offer sequence is used to receive responses on the client-side
of the wire.
Returns:
True if this sequence is an offer sequence, false otherwise.
If this is an offer sequence (isOffer()==true) then this sequence is
associated with another 'main' sequence. This method gives the sequence ID
of that sequence. Note, if this is a source offer sequence
(isSource()==true && isOffer()==true), the main sequence will be a
destination sequence (isSource()==false). If this is a destination offer
sequence (isSource()==false && isOffer()==true) then the main sequence will
be a source sequence (isSource()==true).
Returns:
The sequence ID of the main sequence (if this is an offer sequence)
or null otherwise.
Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3)