com.solace.spring.cloud.stream.binder.provisioning.SolaceConsumerDestination Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-stream-binder-solace Show documentation
Show all versions of spring-cloud-stream-binder-solace Show documentation
A Spring Cloud Stream Binder implementation using the Solace Java API (JCSMP)
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();
}
}