-
Method Summary
void
Sends the given subscription to that stream.
void
Closes the event stream and its underlying resources.
void
Adds a new event consumer to this stream.
-
Method Details
-
registerConsumer
Adds a new event consumer to this stream.
- Parameters:
statusConsumer - the event consumer to add
-
changeSubscription
Sends the given subscription to that stream.
- Parameters:
subscription - the subscription definition
-
close
Closes the event stream and its underlying resources.
- Specified by:
close in interface AutoCloseable
- Throws:
MastodonException - if a error during the close operation occurs