Class Connect
- java.lang.Object
-
- org.eclipse.ditto.services.gateway.streaming.Connect
-
public final class Connect extends Object
Message to be sent in order to establish a new "streaming" connection viaStreamingActor.
-
-
Constructor Summary
Constructors Constructor Description Connect(akka.stream.javadsl.SourceQueueWithComplete<SessionedJsonifiable> eventAndResponsePublisher, CharSequence connectionCorrelationId, String type, org.eclipse.ditto.model.base.json.JsonSchemaVersion jsonSchemaVersion, Instant sessionExpirationTime, Set<org.eclipse.ditto.model.base.acks.AcknowledgementLabel> declaredAcknowledgementLabels)Constructs a newConnectinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetConnectionCorrelationId()Set<org.eclipse.ditto.model.base.acks.AcknowledgementLabel>getDeclaredAcknowledgementLabels()akka.stream.javadsl.SourceQueueWithComplete<SessionedJsonifiable>getEventAndResponsePublisher()org.eclipse.ditto.model.base.json.JsonSchemaVersiongetJsonSchemaVersion()Optional<Instant>getSessionExpirationTime()StringgetType()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Connect
public Connect(akka.stream.javadsl.SourceQueueWithComplete<SessionedJsonifiable> eventAndResponsePublisher, CharSequence connectionCorrelationId, String type, org.eclipse.ditto.model.base.json.JsonSchemaVersion jsonSchemaVersion, @Nullable Instant sessionExpirationTime, Set<org.eclipse.ditto.model.base.acks.AcknowledgementLabel> declaredAcknowledgementLabels)
Constructs a newConnectinstance.- Parameters:
eventAndResponsePublisher- a source queue to push events and responses into.connectionCorrelationId- the correlationId of the connection/session.type- the type of the "streaming" connection to establish.jsonSchemaVersion- schema version of the request for the streaming session.sessionExpirationTime- how long to keep the session alive when idling.declaredAcknowledgementLabels- labels of acknowledgements this session may send.
-
-
Method Detail
-
getEventAndResponsePublisher
public akka.stream.javadsl.SourceQueueWithComplete<SessionedJsonifiable> getEventAndResponsePublisher()
-
getConnectionCorrelationId
public String getConnectionCorrelationId()
-
getType
public String getType()
-
getJsonSchemaVersion
public org.eclipse.ditto.model.base.json.JsonSchemaVersion getJsonSchemaVersion()
-
getDeclaredAcknowledgementLabels
public Set<org.eclipse.ditto.model.base.acks.AcknowledgementLabel> getDeclaredAcknowledgementLabels()
-
-