public class StreamInfo extends ApiResponse<StreamInfo>
NO_TYPE, PARSE_ERROR_TYPE| Constructor and Description |
|---|
StreamInfo(@NonNull io.nats.client.support.JsonValue vStreamInfo)
Construct a StreamInfo instance from a JsonValue
|
StreamInfo(@NonNull Message msg)
Construct a StreamInfo instance from a message
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.util.List<StreamAlternate> |
getAlternates()
Gets the stream alternates
|
@Nullable ClusterInfo |
getClusterInfo()
Gets the cluster info
|
@NonNull StreamConfiguration |
getConfig()
Gets the stream configuration.
|
@NonNull StreamConfiguration |
getConfiguration()
Gets the stream configuration.
|
@NonNull java.time.ZonedDateTime |
getCreateTime()
Gets the creation time of the stream.
|
@Nullable MirrorInfo |
getMirrorInfo()
Gets the mirror info
|
@Nullable java.util.List<SourceInfo> |
getSourceInfos()
Gets the source info
|
@NonNull StreamState |
getStreamState()
Gets the stream state.
|
@Nullable java.time.ZonedDateTime |
getTimestamp()
Gets the server time the info was gathered
|
java.lang.String |
toString() |
getApiErrorCode, getDescription, getError, getErrorCode, getErrorObject, getJv, getType, hasError, throwOnHasErrorpublic StreamInfo(@NonNull Message msg)
msg - the messagepublic StreamInfo(@NonNull io.nats.client.support.JsonValue vStreamInfo)
vStreamInfo - the JsonValuepublic @NonNull StreamConfiguration getConfiguration()
public @NonNull StreamConfiguration getConfig()
public @NonNull StreamState getStreamState()
public @NonNull java.time.ZonedDateTime getCreateTime()
public @Nullable MirrorInfo getMirrorInfo()
public @Nullable java.util.List<SourceInfo> getSourceInfos()
public @Nullable ClusterInfo getClusterInfo()
public @Nullable java.util.List<StreamAlternate> getAlternates()
public @Nullable java.time.ZonedDateTime getTimestamp()
public java.lang.String toString()
toString in class ApiResponse<StreamInfo>