Class RedisSessionStore

java.lang.Object
io.vertx.mutiny.ext.web.sstore.redis.RedisSessionStore
All Implemented Interfaces:
MutinyDelegate

public class RedisSessionStore extends Object implements MutinyDelegate
A SessionStore that uses a Redis to store the sessions and associated data. This assumes that the redis logical database (i.e. select) is only used to store the sessions to make size query reliable.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Rémy Noël
See Also:
  • RedisSessionStore
  • Field Details

  • Constructor Details

    • RedisSessionStore

      public RedisSessionStore(io.vertx.ext.web.sstore.redis.RedisSessionStore delegate)
      Create a new instance of RedisSessionStore delegating to the given (non-null) instance of RedisSessionStore.
    • RedisSessionStore

      public RedisSessionStore(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.sstore.redis.RedisSessionStore getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • create

      public static RedisSessionStore create(Vertx vertx, Redis redis)
      Creates a RedisSessionStore with the default retry TO.
      Parameters:
      vertx - a Vert.x instance
      redis - A Redis client
      Returns:
      the store
    • create

      public static RedisSessionStore create(Vertx vertx, long retryTimeoutMs, Redis redis)
      Creates a RedisSessionStore with the given retry TO.
      Parameters:
      vertx - a Vert.x instance
      redis - The given options to establish the connection
      retryTimeoutMs - The time between two consecutive tries
      Returns:
      the store
    • newInstance

      public static RedisSessionStore newInstance(io.vertx.ext.web.sstore.redis.RedisSessionStore delegate)
      Creates a new instance of the RedisSessionStore.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object