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.actor.ActorRef eventAndResponsePublisher, CharSequence connectionCorrelationId, String type, org.eclipse.ditto.model.base.json.JsonSchemaVersion jsonSchemaVersion, Instant sessionExpirationTime)Constructs a newConnectinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetConnectionCorrelationId()akka.actor.ActorRefgetEventAndResponsePublisher()org.eclipse.ditto.model.base.json.JsonSchemaVersiongetJsonSchemaVersion()Optional<Instant>getSessionExpirationTime()StringgetType()inthashCode()StringtoString()
-
-
-
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 newConnectinstance.- Parameters:
eventAndResponsePublisher- the ActorRef to the correlatingEventAndResponsePublisher.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()
-
getJsonSchemaVersion
public org.eclipse.ditto.model.base.json.JsonSchemaVersion getJsonSchemaVersion()
-
-