public class ConsumerSource
extends java.lang.Object
implements io.nats.client.support.JsonSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsumerSource.Builder
ConsumerSource can be created using a Builder.
|
| Constructor and Description |
|---|
ConsumerSource(@NonNull ConsumerSource consumerSource)
Construct a ConsumerSource configuration copying the information from another ConsumerSource
|
ConsumerSource(@NonNull java.lang.String name,
@NonNull java.lang.String deliverSubject)
Construct the ConsumerSource configuration
|
| Modifier and Type | Method and Description |
|---|---|
static ConsumerSource.Builder |
builder()
Creates a builder for a ConsumerSource object.
|
boolean |
equals(java.lang.Object o) |
@NonNull java.lang.String |
getDeliverSubject()
The subject to deliver messages to.
|
@NonNull java.lang.String |
getName()
The durable consumer name used for sourcing.
|
int |
hashCode() |
@NonNull java.lang.String |
toJson() |
java.lang.String |
toString() |
public ConsumerSource(@NonNull java.lang.String name,
@NonNull java.lang.String deliverSubject)
name - the consumer namedeliverSubject - the deliver subjectpublic ConsumerSource(@NonNull ConsumerSource consumerSource)
consumerSource - the source configurationpublic @NonNull java.lang.String toJson()
toJson in interface io.nats.client.support.JsonSerializablepublic @NonNull java.lang.String getName()
public @NonNull java.lang.String getDeliverSubject()
public java.lang.String toString()
toString in class java.lang.Objectpublic final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static ConsumerSource.Builder builder()