java.lang.Object
org.mastodon4j.core.impl.MastodonStreaming
- All Implemented Interfaces:
BaseStreaming,Streaming
-
Constructor Summary
ConstructorsConstructorDescriptionMastodonStreaming(BaseStreaming baseStreaming, WebSocket.Builder websocketBuilder, String baseStreamingUri) -
Method Summary
-
Constructor Details
-
MastodonStreaming
public MastodonStreaming(BaseStreaming baseStreaming, WebSocket.Builder websocketBuilder, String baseStreamingUri)
-
-
Method Details
-
health
Description copied from interface:BaseStreamingCheck if the server is alive.Verify that the streaming service is alive before connecting to it
- Specified by:
healthin interfaceBaseStreaming- Returns:
trueif the service is alive,falseotherwise
-
stream
Description copied from interface:StreamingEstablishing a WebSocket connection.Open a multiplexed WebSocket connection to receive events.
The status stream object returned by this method needs to be closed by the consumer when no longer needed in order for the underlying websocket to be closed.
-