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.actor.ActorRef eventAndResponsePublisher,
                       CharSequence connectionCorrelationId,
                       String type,
                       org.eclipse.ditto.model.base.json.JsonSchemaVersion jsonSchemaVersion,
                       @Nullable
                       Instant sessionExpirationTime)
        Constructs a new Connect instance.
        Parameters:
        eventAndResponsePublisher - the ActorRef to the correlating EventAndResponsePublisher.
        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.
    • Method Detail

      • getEventAndResponsePublisher

        public akka.actor.ActorRef getEventAndResponsePublisher()
      • getConnectionCorrelationId

        public String getConnectionCorrelationId()
      • getType

        public String getType()
      • getSessionExpirationTime

        public Optional<Instant> getSessionExpirationTime()
      • getJsonSchemaVersion

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

        public int hashCode()
        Overrides:
        hashCode in class Object