Interface Session

All Superinterfaces:
Cloneable, Comparable, Messageable, Serializable, io.vertx.core.shareddata.Shareable, Storable

public interface Session extends Messageable, Storable
Indicates that a request is part of a persistent connection. This means that services can write to the session without using request-reply messaging.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
    static String
     

    Fields inherited from interface com.codingchili.core.storage.Storable

    idField
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.json.JsonObject
     
    io.vertx.core.Future<Void>
    Destroys the session.
     
    io.vertx.core.Future<Boolean>
     
    io.vertx.core.Future<Void>
    Call this to update the session data after modification.

    Methods inherited from interface com.codingchili.core.listener.Messageable

    write

    Methods inherited from interface io.vertx.core.shareddata.Shareable

    copy

    Methods inherited from interface com.codingchili.core.storage.Storable

    compareTo, compareToAttribute, getId
  • Field Details

  • Method Details

    • isActive

      io.vertx.core.Future<Boolean> isActive()
      Returns:
      true if the session is still active.
    • getHome

      String getHome()
      Returns:
      the session owner identified by a string.
    • asJson

      io.vertx.core.json.JsonObject asJson()
      Returns:
      returns data associated with a session.
    • destroy

      io.vertx.core.Future<Void> destroy()
      Destroys the session.
      Returns:
      callback
    • update

      io.vertx.core.Future<Void> update()
      Call this to update the session data after modification.
      Returns:
      callback