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

com.solace.spring.cloud.stream.binder.provisioning.SolaceConsumerDestination Maven / Gradle / Ivy

The newest version!
package com.solace.spring.cloud.stream.binder.provisioning;

import lombok.Getter;
import org.springframework.cloud.stream.provisioning.ConsumerDestination;

import java.util.Set;
import java.util.StringJoiner;

@Getter
public class SolaceConsumerDestination implements ConsumerDestination {
    private final String bindingDestinationName;
    private final String physicalGroupName;
    private final String endpointName;
    private final boolean isTemporary;
    private final String errorQueueName;
    private final Set additionalSubscriptions;

    SolaceConsumerDestination(String endpointName, String bindingDestinationName, String physicalGroupName,
                              boolean isTemporary, String errorQueueName, Set additionalSubscriptions) {
        this.bindingDestinationName = bindingDestinationName;
        this.physicalGroupName = physicalGroupName;
        this.endpointName = endpointName;
        this.isTemporary = isTemporary;
        this.errorQueueName = errorQueueName;
        this.additionalSubscriptions = additionalSubscriptions;
    }

    @Override
    public String getName() {
        return endpointName;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", SolaceConsumerDestination.class.getSimpleName() + "[", "]")
                .add("bindingDestinationName='" + bindingDestinationName + "'")
                .add("physicalGroupName='" + physicalGroupName + "'")
                .add("endpointName='" + endpointName + "'")
                .add("isTemporary=" + isTemporary)
                .add("errorQueueName='" + errorQueueName + "'")
                .toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy