Class Connect


  • public final class Connect
    extends Object
    Message to be sent in order to establish a new "streaming" connection via StreamingActor.
    • 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 new Connect instance.
        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()
      • getSessionExpirationTime

        public Optional<Instant> getSessionExpirationTime()
      • getJsonSchemaVersion

        public org.eclipse.ditto.model.base.json.JsonSchemaVersion getJsonSchemaVersion()
      • getDeclaredAcknowledgementLabels

        public Set<org.eclipse.ditto.model.base.acks.AcknowledgementLabel> getDeclaredAcknowledgementLabels()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object