Package net.voidnote
Class StreamOptions
java.lang.Object
net.voidnote.StreamOptions
Options for
VoidNote.createStream(net.voidnote.StreamOptions).
StreamOptions opts = StreamOptions.of("vn_...")
.withTitle("Deploy log")
.withTtl(3600);
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamOptionsCreates options with only the required API key.withTtl(int ttlSeconds)
-
Field Details
-
apiKey
Required: your API key (vn_...). -
title
Optional stream title. -
ttlSeconds
public final int ttlSecondsStream lifetime in seconds. Accepted values:3600(1h),21600(6h),86400(24h). Defaults to3600.
-
-
Method Details
-
of
Creates options with only the required API key. TTL defaults to 3600 s. -
withTitle
-
withTtl
-