Package org.apache.cxf.ws.rm.persistence
Interface RMStore
- All Known Implementing Classes:
RMTxStore
public interface RMStore
-
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a destination sequence in the persistent store, with the sequence attributes as specified in theRMSDestinationSequenceobject.voidCreate a source sequence in the persistent store, with the sequence attributes as specified in theRMSourceSequenceobject.Retrieve the destination sequence with the specified identifier from persistent store.getDestinationSequences(String endpointIdentifier) Retrieves all sequences managed by the identified RM destination endpoint from persistent store.getMessages(Identifier sid, boolean outbound) Retrieves the outbound/inbound messages stored for the source/destination sequence with the given identifier.Retrieve the source sequence with the specified identifier from persistent store.getSourceSequences(String endpointIdentifier) Retrieves all sequences managed by the identified RM source endpoint from persistent store.voidpersistIncoming(DestinationSequence seq, RMMessage msg) Called by an RM source upon processing an outbound message.voidpersistOutgoing(SourceSequence seq, RMMessage msg) Called by an RM source upon processing an outbound message.voidRemove the destination sequence with the specified identifier from persistent store.voidremoveMessages(Identifier sid, Collection<Long> messageNrs, boolean outbound) Removes the messages with the given message numbers and identifiers from the store of outbound/inbound messages.voidRemove the source sequence with the specified identifier from persistent store.
-
Method Details
-
createSourceSequence
Create a source sequence in the persistent store, with the sequence attributes as specified in theRMSourceSequenceobject.- Parameters:
seq- the sequence
-
createDestinationSequence
Create a destination sequence in the persistent store, with the sequence attributes as specified in theRMSDestinationSequenceobject.- Parameters:
seq- the sequence
-
getSourceSequence
Retrieve the source sequence with the specified identifier from persistent store.- Parameters:
seq- the sequence- Returns:
- the sequence if present; otherwise null
-
getDestinationSequence
Retrieve the destination sequence with the specified identifier from persistent store.- Parameters:
seq- the sequence- Returns:
- the sequence if present; otherwise null
-
removeSourceSequence
Remove the source sequence with the specified identifier from persistent store.- Parameters:
seq- the sequence
-
removeDestinationSequence
Remove the destination sequence with the specified identifier from persistent store.- Parameters:
seq- the sequence
-
getSourceSequences
Retrieves all sequences managed by the identified RM source endpoint from persistent store.- Parameters:
endpointIdentifier- the identifier for the source- Returns:
- the collection of sequences
-
getDestinationSequences
Retrieves all sequences managed by the identified RM destination endpoint from persistent store.- Parameters:
endpointIdentifier- the identifier for the destination- Returns:
- the collection of sequences
-
getMessages
Retrieves the outbound/inbound messages stored for the source/destination sequence with the given identifier.- Parameters:
sid- the source sequence identifieroutbound- true if the message is outbound- Returns:
- the collection of messages *
-
persistOutgoing
Called by an RM source upon processing an outbound message. TheRMMessageparameter is null for non application (RM protocol) messages.- Parameters:
seq- the source sequencemsg- the outgoing message
-
persistIncoming
Called by an RM source upon processing an outbound message. TheRMMessageparameter is null for non application (RM protocol) messages.- Parameters:
seq- the destination sequencemsg- the incoming message
-
removeMessages
Removes the messages with the given message numbers and identifiers from the store of outbound/inbound messages.- Parameters:
sid- the identifier of the source sequencemessageNrs- the collection of message numbersoutbound- true if the message is outbound
-