Examples of DeliveryAssurance


Examples of com.sun.xml.ws.rx.rm.api.ReliableMessagingFeature.DeliveryAssurance

     * recording that fact one unit? This is to avoid duplicate delivery to the
     * application layer when a duplicate request comes in.
     */
    private boolean isTransactionConfigEnabled() {
        boolean internalRmFeatureExists = (rc.configuration.getInternalRmFeature() != null);
        DeliveryAssurance deliveryAssurance = rc.configuration.getRmFeature().getDeliveryAssurance();
        boolean noDupQoS =
                (deliveryAssurance.equals(DeliveryAssurance.EXACTLY_ONCE) ||
                        deliveryAssurance.equals(DeliveryAssurance.AT_MOST_ONCE));
        return internalRmFeatureExists && noDupQoS;
    }
View Full Code Here

Examples of com.sun.xml.ws.rx.rm.api.ReliableMessagingFeature.DeliveryAssurance

    private final boolean orderedDelivery;

    private DeliveryAssuranceAssertion(AssertionData data, Collection<? extends PolicyAssertion> assertionParameters, AssertionSet nestedAlternative) throws AssertionCreationException {
        super(data, assertionParameters, nestedAlternative);

        DeliveryAssurance _deliveryAssurance = null;
        boolean _orderedDelivery = false;

        if (nestedAlternative != null) {
            for (PolicyAssertion nestedAssertion : nestedAlternative) {
View Full Code Here

Examples of com.sun.xml.ws.rx.rm.api.ReliableMessagingFeature.DeliveryAssurance

     * recording that fact one unit? This is to avoid duplicate delivery to the
     * application layer when a duplicate request comes in.
     */
    private boolean isTransactionConfigEnabled() {
        boolean internalRmFeatureExists = (rc.configuration.getInternalRmFeature() != null);
        DeliveryAssurance deliveryAssurance = rc.configuration.getRmFeature().getDeliveryAssurance();
        boolean noDupQoS =
                (deliveryAssurance.equals(DeliveryAssurance.EXACTLY_ONCE) ||
                        deliveryAssurance.equals(DeliveryAssurance.AT_MOST_ONCE));
        return internalRmFeatureExists && noDupQoS;
    }
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance

     * @throws RMException if message had already been acknowledged
     */
    boolean applyDeliveryAssurance(long mn, Message message) throws RMException {
        Continuation cont = getContinuation(message);
        RMConfiguration config = destination.getReliableEndpoint().getConfiguration();
        DeliveryAssurance da = config.getDeliveryAssurance();
        boolean canSkip = da != DeliveryAssurance.AT_LEAST_ONCE && da != DeliveryAssurance.EXACTLY_ONCE;
        boolean robust = false;
        boolean robustDelivering = false;
        if (message != null) {
            robust = MessageUtils.isTrue(message.getContextualProperty(Message.ROBUST_ONEWAY));
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance

     * @param dat The deliveryAssurance to set.
     */
    public void setDeliveryAssurance(DeliveryAssuranceType dat) {
        RMConfiguration cfg = getConfiguration();
        cfg.setInOrder(dat.isSetInOrder());
        DeliveryAssurance da = null;
        if (dat.isSetExactlyOnce() || (dat.isSetAtLeastOnce() && dat.isSetAtMostOnce())) {
            da = DeliveryAssurance.EXACTLY_ONCE;
        } else if (dat.isSetAtLeastOnce()) {
            da = DeliveryAssurance.AT_LEAST_ONCE;
        } else if (dat.isSetAtMostOnce()) {
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance

    @PostConstruct
    void initialise() {
        if (configuration == null) {
            getConfiguration().setExponentialBackoff(true);
        }
        DeliveryAssurance da = configuration.getDeliveryAssurance();
        if (da == null) {
            configuration.setDeliveryAssurance(DeliveryAssurance.AT_LEAST_ONCE);
        }
        if (null == sourcePolicy) {
            setSourcePolicy(null);
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance

     * @param dat The deliveryAssurance to set.
     */
    public void setDeliveryAssurance(DeliveryAssuranceType dat) {
        RMConfiguration cfg = getConfiguration();
        cfg.setInOrder(dat.isSetInOrder());
        DeliveryAssurance da = null;
        if (dat.isSetExactlyOnce() || (dat.isSetAtLeastOnce() && dat.isSetAtMostOnce())) {
            da = DeliveryAssurance.EXACTLY_ONCE;
        } else if (dat.isSetAtLeastOnce()) {
            da = DeliveryAssurance.AT_LEAST_ONCE;
        } else if (dat.isSetAtMostOnce()) {
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance

    @PostConstruct
    void initialise() {
        if (configuration == null) {
            getConfiguration().setExponentialBackoff(true);
        }
        DeliveryAssurance da = configuration.getDeliveryAssurance();
        if (da == null) {
            configuration.setDeliveryAssurance(DeliveryAssurance.AT_LEAST_ONCE);
        }
        if (null == sourcePolicy) {
            setSourcePolicy(null);
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance

    public void testExactlyOnce() {
        SpringBusFactory factory = new SpringBusFactory();
        bus = factory.createBus("org/apache/cxf/ws/rm/exactly-once.xml", false);
        RMManager manager = bus.getExtension(RMManager.class);
        RMConfiguration cfg = manager.getConfiguration();
        DeliveryAssurance da = cfg.getDeliveryAssurance();
        assertEquals(da, DeliveryAssurance.EXACTLY_ONCE);
        assertFalse(cfg.isInOrder());
    }
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMConfiguration.DeliveryAssurance

     * @throws RMException if message had already been acknowledged
     */
    boolean applyDeliveryAssurance(long mn, Message message) throws RMException {
        Continuation cont = getContinuation(message);
        RMConfiguration config = destination.getReliableEndpoint().getConfiguration();
        DeliveryAssurance da = config.getDeliveryAssurance();
        boolean canSkip = da != DeliveryAssurance.AT_LEAST_ONCE && da != DeliveryAssurance.EXACTLY_ONCE;
        boolean robust = false;
        boolean robustDelivering = false;
        if (message != null) {
            robust = MessageUtils.isTrue(message.getContextualProperty(Message.ROBUST_ONEWAY));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.