|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SequenceData
| Method Summary | |
|---|---|
void |
attachMessageToUnackedMessageNumber(ApplicationMessage message)
|
boolean |
getAckRequestedFlag()
|
String |
getBoundSecurityTokenReferenceId()
|
long |
getExpirationTime()
|
long |
getLastAcknowledgementRequestTime()
|
long |
getLastActivityTime()
Provides information on the last activity time of this sequence data instance. |
long |
getLastMessageNumber()
|
List<Long> |
getLastMessageNumberWithUnackedMessageNumbers()
In contrast to getUnackedMessageNumbers(), this method returns allways a non-empty
List in which first item represents a current last message number value (see also
getLastMessageNumber(). |
String |
getSequenceId()
|
Sequence.State |
getState()
|
List<Long> |
getUnackedMessageNumbers()
|
long |
incrementAndGetLastMessageNumber(boolean received)
Increments last message number on the sequence and returns new last message number value. |
boolean |
isFailedOver(long messageNumber)
|
void |
markAsAcknowledged(long messageNumber)
Removes the provided messageNumber from the collection of unacked message
numbers and and marks stored message with given messageNumber (if any)
as eligible for removal from the underlying message storage. |
void |
registerReceivedUnackedMessageNumber(long messageNumber)
Registers the message number as unacknowledged. |
ApplicationMessage |
retrieveMessage(String correlationId)
|
void |
setAckRequestedFlag(boolean newValue)
|
void |
setLastAcknowledgementRequestTime(long newTime)
|
void |
setState(Sequence.State newState)
|
| Method Detail |
|---|
String getSequenceId()
long getExpirationTime()
String getBoundSecurityTokenReferenceId()
long getLastMessageNumber()
boolean getAckRequestedFlag()
void setAckRequestedFlag(boolean newValue)
long getLastAcknowledgementRequestTime()
void setLastAcknowledgementRequestTime(long newTime)
long getLastActivityTime()
attachMessageToUnackedMessageNumber(ApplicationMessage)incrementAndGetLastMessageNumber(boolean)markAsAcknowledged(long)#registerUnackedMessageNumber(long, boolean) retrieveMessage(java.lang.String)setAckRequestedFlag(boolean)setLastAcknowledgementRequestTime(long)setState(com.sun.xml.ws.rx.rm.runtime.sequence.Sequence.State)
Sequence.State getState()
void setState(Sequence.State newState)
long incrementAndGetLastMessageNumber(boolean received)
received - this flag specifies whether the message with such number should be marked
as received on the sequence.
void registerReceivedUnackedMessageNumber(long messageNumber)
throws DuplicateMessageRegistrationException
messageNumber parameter is greater that the actual
last mesasge number, the last message number value is increased to the value of
messageNumber parameter. All message numbers lying between the original
and new value of last message number are automatically marked as unacknowldeged
and not received.
messageNumber - unacknowledged message number to register
DuplicateMessageRegistrationException - in case such registration already existsvoid markAsAcknowledged(long messageNumber)
messageNumber from the collection of unacked message
numbers and and marks stored message with given messageNumber (if any)
as eligible for removal from the underlying message storage.
This method does nothing if there's no such unacknowledged message number found
messageNumber - boolean isFailedOver(long messageNumber)
void attachMessageToUnackedMessageNumber(ApplicationMessage message)
ApplicationMessage retrieveMessage(String correlationId)
List<Long> getUnackedMessageNumbers()
List<Long> getLastMessageNumberWithUnackedMessageNumbers()
getUnackedMessageNumbers(), this method returns allways a non-empty
List in which first item represents a current last message number value (see also
getLastMessageNumber(). The items following the first item represent
the collection of unacked message numbers (see also getUnackedMessageNumbers()).
This special method was introduced in order to allow for an atomic retrieval of both values.
List where first item represents the last message number and all subsequent
values represent unacknowledged message numbers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||