public class SourceSequence extends AbstractSequence
acknowledgement, id
Constructor and Description |
---|
SourceSequence(Identifier i,
Date e,
Identifier oi,
long cmn,
boolean lm,
ProtocolVariation pv) |
SourceSequence(Identifier i,
Date e,
Identifier oi,
ProtocolVariation pv) |
SourceSequence(Identifier i,
ProtocolVariation pv) |
Modifier and Type | Method and Description |
---|---|
boolean |
allAcknowledged()
Returns true if a last message had been sent for this sequence and if all
messages for this sequence have been acknowledged.
|
long |
getCurrentMessageNr() |
String |
getEndpointIdentifier() |
Date |
getExpires() |
Identifier |
getOfferingSequenceIdentifier() |
Source |
getSource()
Returns the source associated with this source sequence.
|
org.apache.cxf.ws.addressing.EndpointReferenceType |
getTarget() |
boolean |
isLastMessage() |
boolean |
needAcknowledge(long num)
Returns true if any messages other than the number supplied are waiting for acknowledgment.
|
long |
nextMessageNumber(Identifier inSeqId,
long inMsgNumber,
boolean last)
Returns the next message number and increases the message number.
|
boolean |
offeredBy(Identifier sid)
Returns true if this sequence was constructed from an offer for an
inbound sequence includes in the CreateSequenceRequest in response to
which the sequence with the specified identifier was created.
|
void |
setAcknowledged(SequenceAcknowledgement ack)
Used by the RM source to cache received acknowledgements for this
sequence.
|
void |
setExpires(Expires ex) |
void |
setTarget(org.apache.cxf.ws.addressing.EndpointReferenceType to)
The target for the sequence is the first non-anonymous address that a
message is sent to as part of this sequence.
|
equals, getIdentifier, getProtocol, hashCode, identifierEquals, isAcknowledged, toString
public SourceSequence(Identifier i, ProtocolVariation pv)
public SourceSequence(Identifier i, Date e, Identifier oi, ProtocolVariation pv)
public SourceSequence(Identifier i, Date e, Identifier oi, long cmn, boolean lm, ProtocolVariation pv)
public long getCurrentMessageNr()
public boolean isLastMessage()
public Identifier getOfferingSequenceIdentifier()
public String getEndpointIdentifier()
public Date getExpires()
public boolean offeredBy(Identifier sid)
sid
- the sequence identifierpublic boolean needAcknowledge(long num)
num
- message number to checkpublic boolean allAcknowledged()
public void setAcknowledged(SequenceAcknowledgement ack) throws RMException
ack
- an acknowledgement for this sequenceRMException
public Source getSource()
public void setExpires(Expires ex)
public long nextMessageNumber(Identifier inSeqId, long inMsgNumber, boolean last)
public void setTarget(org.apache.cxf.ws.addressing.EndpointReferenceType to)
to
- public org.apache.cxf.ws.addressing.EndpointReferenceType getTarget()
Apache CXF