Interface SessionIdGenerator

All Known Implementing Classes:
SessionIdGeneratorBase, StandardSessionIdGenerator

public interface SessionIdGenerator
Interface for generating session identifiers.
  • Method Summary

    Modifier and Type
    Method
    Description
    Generate and return a new session identifier.
    Generate and return a new session identifier.
    Returns the node identifier associated with this node which will be included in the generated session ID.
    int
    Returns the number of bytes for a session ID.
    void
    setJvmRoute(String jvmRoute)
    Specify the node identifier associated with this node which will be included in the generated session ID.
    void
    setSessionIdLength(int sessionIdLength)
    Specify the number of bytes for a session ID
  • Method Details

    • getJvmRoute

      String getJvmRoute()
      Returns the node identifier associated with this node which will be included in the generated session ID.
      Returns:
      the JVM route
    • setJvmRoute

      void setJvmRoute(String jvmRoute)
      Specify the node identifier associated with this node which will be included in the generated session ID.
      Parameters:
      jvmRoute - The node identifier
    • getSessionIdLength

      int getSessionIdLength()
      Returns the number of bytes for a session ID.
      Returns:
      the session ID length in bytes
    • setSessionIdLength

      void setSessionIdLength(int sessionIdLength)
      Specify the number of bytes for a session ID
      Parameters:
      sessionIdLength - Number of bytes
    • generateSessionId

      String generateSessionId()
      Generate and return a new session identifier.
      Returns:
      the newly generated session id
    • generateSessionId

      String generateSessionId(String route)
      Generate and return a new session identifier.
      Parameters:
      route - node identifier to include in generated id
      Returns:
      the newly generated session id