public class External
extends java.lang.Object
implements io.nats.client.support.JsonSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
External.Builder
External can be created using a Builder.
|
| Constructor and Description |
|---|
External(External external)
Construct an External configuration copying the information from an External configuration
|
External(java.lang.String api,
java.lang.String deliver)
Construct the External configuration
|
| Modifier and Type | Method and Description |
|---|---|
static External.Builder |
builder()
Creates a builder for an External object.
|
boolean |
equals(java.lang.Object o) |
@Nullable java.lang.String |
getApi()
The subject prefix that imports the other account
$JS.API.CONSUMER.> subjects |
@Nullable java.lang.String |
getDeliver()
The delivery subject to use for the push consumer.
|
int |
hashCode() |
@NonNull java.lang.String |
toJson()
Returns a JSON representation of this mirror
|
java.lang.String |
toString() |
public External(java.lang.String api,
java.lang.String deliver)
api - the api prefixdeliver - the delivery subjectpublic External(External external)
external - the source configurationpublic @NonNull java.lang.String toJson()
toJson in interface io.nats.client.support.JsonSerializablepublic @Nullable java.lang.String getApi()
$JS.API.CONSUMER.> subjectspublic @Nullable java.lang.String getDeliver()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static External.Builder builder()