Class StartStreaming
- java.lang.Object
-
- org.eclipse.ditto.services.gateway.streaming.StartStreaming
-
- All Implemented Interfaces:
StreamControlMessage
public final class StartStreaming extends Object implements StreamControlMessage
Message indicating a demand to receive entities of a specifiedStreamingTypevia a "streaming" connection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStartStreaming.StartStreamingBuilderA mutable builder with a fluent API for creating an instance of StartStreaming.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.eclipse.ditto.model.base.auth.AuthorizationContextgetAuthorizationContext()static StartStreaming.StartStreamingBuildergetBuilder(org.eclipse.ditto.services.utils.pubsub.StreamingType streamingType, CharSequence connectionCorrelationId, org.eclipse.ditto.model.base.auth.AuthorizationContext authorizationContext)Returns a mutable builder with a fluent API for creating an instance of StartStreaming.StringgetConnectionCorrelationId()Optional<CharSequence>getCorrelationId()Optional<org.eclipse.ditto.json.JsonFieldSelector>getExtraFields()Returns the selector for the extra fields and their values to enrich outgoing signals with.Optional<String>getFilter()List<String>getNamespaces()org.eclipse.ditto.services.utils.pubsub.StreamingTypegetStreamingType()inthashCode()StringtoString()
-
-
-
Method Detail
-
getBuilder
public static StartStreaming.StartStreamingBuilder getBuilder(org.eclipse.ditto.services.utils.pubsub.StreamingType streamingType, CharSequence connectionCorrelationId, org.eclipse.ditto.model.base.auth.AuthorizationContext authorizationContext)
Returns a mutable builder with a fluent API for creating an instance of StartStreaming.- Parameters:
streamingType- the type of entity to start the streaming for.connectionCorrelationId- the correlationId of the connection/session.authorizationContext- theAuthorizationContextof the connection/session.- Returns:
- the builder.
- Throws:
NullPointerException- if any argument isnull.
-
getStreamingType
public org.eclipse.ditto.services.utils.pubsub.StreamingType getStreamingType()
- Returns:
- the Streaming type of what streaming to start.
-
getConnectionCorrelationId
public String getConnectionCorrelationId()
-
getAuthorizationContext
public org.eclipse.ditto.model.base.auth.AuthorizationContext getAuthorizationContext()
-
getCorrelationId
public Optional<CharSequence> getCorrelationId()
-
getNamespaces
public List<String> getNamespaces()
- Returns:
- the List of namespaces for which
Signals should be emitted to the stream
-
getFilter
public Optional<String> getFilter()
- Returns:
- the optional RQL filter to apply for events before publishing to the stream
-
getExtraFields
public Optional<org.eclipse.ditto.json.JsonFieldSelector> getExtraFields()
Returns the selector for the extra fields and their values to enrich outgoing signals with.- Returns:
- the selector or an empty Optional if signals should not be enriched.
-
-