java.lang.Object
com.vaadin.kubernetes.starter.sessiontracker.CurrentKey

public final class CurrentKey extends Object
Holder for distributed storage session key.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Name of the Cookie that carries the distributed storage session key.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Clears the current distributed storage session key.
    static String
    get()
    Gets the current distributed storage session key.
    static void
    set(String key)
    Sets the distributed storage session key.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CurrentKey

      public CurrentKey()
  • Method Details

    • set

      public static void set(String key)
      Sets the distributed storage session key.
      Parameters:
      key - the distributed storage session key
    • clear

      public static void clear()
      Clears the current distributed storage session key.
    • get

      public static String get()
      Gets the current distributed storage session key.
      Returns:
      the current distributed storage session key