All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.messaging.servicebus.implementation.ServiceBusCreateSessionOptions Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.messaging.servicebus.implementation;

import com.azure.core.annotation.Immutable;

/**
 * An option bag to provide configuration required to create a {@link ServiceBusReactorSession}.
 */
@Immutable
public final class ServiceBusCreateSessionOptions {
    private final boolean distributedTransactionsSupport;

    /**
     * Constructor to create {@link ServiceBusCreateSessionOptions}.
     * @param distributedTransactionsSupport if session supports distributed transaction across different entities.
     */
    public ServiceBusCreateSessionOptions(boolean distributedTransactionsSupport) {
        this.distributedTransactionsSupport = distributedTransactionsSupport;
    }

    /**
     * Determine is distributed transactions are supported across different entities.
     * @return true if distributed transactions across different entities are supported.
     */
    public boolean isDistributedTransactionsSupported() {
        return this.distributedTransactionsSupport;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy