use of org.apache.cxf.ws.rm.RetryStatus in project cxf by apache.
the class RedeliveryQueueImpl method getRedeliveryStatuses.
public Map<Long, RetryStatus> getRedeliveryStatuses(DestinationSequence seq) {
Map<Long, RetryStatus> cp = new HashMap<>();
List<RedeliverCandidate> sequenceCandidates = getSequenceCandidates(seq);
if (null != sequenceCandidates) {
for (int i = 0; i < sequenceCandidates.size(); i++) {
RedeliverCandidate candidate = sequenceCandidates.get(i);
RMProperties properties = RMContextUtils.retrieveRMProperties(candidate.getMessage(), false);
SequenceType st = properties.getSequence();
cp.put(st.getMessageNumber(), candidate);
}
}
return cp;
}
use of org.apache.cxf.ws.rm.RetryStatus in project cxf by apache.
the class RetransmissionQueueImpl method getRetransmissionStatuses.
public Map<Long, RetryStatus> getRetransmissionStatuses(SourceSequence seq) {
Map<Long, RetryStatus> cp = new HashMap<>();
List<ResendCandidate> sequenceCandidates = getSequenceCandidates(seq);
if (null != sequenceCandidates) {
for (int i = 0; i < sequenceCandidates.size(); i++) {
ResendCandidate candidate = sequenceCandidates.get(i);
cp.put(candidate.getNumber(), candidate);
}
}
return cp;
}
Aggregations