Class SessionLoader.WorkerContext

java.lang.Object
org.keycloak.models.sessions.infinispan.initializer.SessionLoader.WorkerContext
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OfflinePersistentWorkerContext
Enclosing interface:
SessionLoader<LOADER_CONTEXT extends SessionLoader.LoaderContext,WORKER_CONTEXT extends SessionLoader.WorkerContext,WORKER_RESULT extends SessionLoader.WorkerResult>

public static class SessionLoader.WorkerContext extends Object implements Serializable
Object, which is computed before each worker iteration and contains some data to be used by the corresponding worker iteration. For example info about which segment/page should be loaded by current worker.
See Also:
  • Constructor Details

    • WorkerContext

      public WorkerContext(int segment, int workerId)
  • Method Details

    • getSegment

      public int getSegment()
    • getWorkerId

      public int getWorkerId()