Search in sources :

Example 1 with RetryStatus

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;
}
Also used : HashMap(java.util.HashMap) SequenceType(org.apache.cxf.ws.rm.v200702.SequenceType) RetryStatus(org.apache.cxf.ws.rm.RetryStatus) Endpoint(org.apache.cxf.endpoint.Endpoint) RMProperties(org.apache.cxf.ws.rm.RMProperties)

Example 2 with RetryStatus

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;
}
Also used : HashMap(java.util.HashMap) RetryStatus(org.apache.cxf.ws.rm.RetryStatus) RMEndpoint(org.apache.cxf.ws.rm.RMEndpoint) Endpoint(org.apache.cxf.endpoint.Endpoint)

Aggregations

HashMap (java.util.HashMap)2 Endpoint (org.apache.cxf.endpoint.Endpoint)2 RetryStatus (org.apache.cxf.ws.rm.RetryStatus)2 RMEndpoint (org.apache.cxf.ws.rm.RMEndpoint)1 RMProperties (org.apache.cxf.ws.rm.RMProperties)1 SequenceType (org.apache.cxf.ws.rm.v200702.SequenceType)1