public interface RMStore
| Modifier and Type | Method and Description |
|---|---|
void |
createDestinationSequence(DestinationSequence seq)
Create a destination sequence in the persistent store, with the sequence attributes as specified in the
RMSDestinationSequence object. |
void |
createSourceSequence(SourceSequence seq)
Create a source sequence in the persistent store, with the sequence attributes as specified in the
RMSourceSequence object. |
DestinationSequence |
getDestinationSequence(Identifier seq)
Retrieve the destination sequence with the specified identifier from persistent store.
|
Collection<DestinationSequence> |
getDestinationSequences(String endpointIdentifier)
Retrieves all sequences managed by the identified RM destination endpoint
from persistent store.
|
Collection<RMMessage> |
getMessages(Identifier sid,
boolean outbound)
Retrieves the outbound/inbound messages stored for the source/destination sequence with
the given identifier.
|
SourceSequence |
getSourceSequence(Identifier seq)
Retrieve the source sequence with the specified identifier from persistent store.
|
Collection<SourceSequence> |
getSourceSequences(String endpointIdentifier)
Retrieves all sequences managed by the identified RM source endpoint
from persistent store.
|
void |
persistIncoming(DestinationSequence seq,
RMMessage msg)
Called by an RM source upon processing an outbound message.
|
void |
persistOutgoing(SourceSequence seq,
RMMessage msg)
Called by an RM source upon processing an outbound message.
|
void |
removeDestinationSequence(Identifier seq)
Remove the destination sequence with the specified identifier from persistent store.
|
void |
removeMessages(Identifier sid,
Collection<Long> messageNrs,
boolean outbound)
Removes the messages with the given message numbers and identifiers from the store of
outbound/inbound messages.
|
void |
removeSourceSequence(Identifier seq)
Remove the source sequence with the specified identifier from persistent store.
|
void createSourceSequence(SourceSequence seq)
RMSourceSequence object.seq - the sequencevoid createDestinationSequence(DestinationSequence seq)
RMSDestinationSequence object.seq - the sequenceSourceSequence getSourceSequence(Identifier seq)
seq - the sequenceDestinationSequence getDestinationSequence(Identifier seq)
seq - the sequencevoid removeSourceSequence(Identifier seq)
seq - the sequencevoid removeDestinationSequence(Identifier seq)
seq - the sequenceCollection<SourceSequence> getSourceSequences(String endpointIdentifier)
endpointIdentifier - the identifier for the sourceCollection<DestinationSequence> getDestinationSequences(String endpointIdentifier)
endpointIdentifier - the identifier for the destinationCollection<RMMessage> getMessages(Identifier sid, boolean outbound)
sid - the source sequence identifieroutbound - true if the message is outboundvoid persistOutgoing(SourceSequence seq, RMMessage msg)
RMMessage
parameter is null for non application (RM protocol) messages.seq - the source sequencemsg - the outgoing messagevoid persistIncoming(DestinationSequence seq, RMMessage msg)
RMMessage
parameter is null for non application (RM protocol) messages.seq - the destination sequencemsg - the incoming messagevoid removeMessages(Identifier sid, Collection<Long> messageNrs, boolean outbound)
sid - the identifier of the source sequencemessageNrs - the collection of message numbersoutbound - true if the message is outboundApache CXF