Class ThreadLocalStrategy

java.lang.Object
com.glideapi.session.ThreadLocalStrategy
All Implemented Interfaces:
SessionStrategy

public class ThreadLocalStrategy extends Object implements SessionStrategy
Session strategy that maintains one session per thread. This provides a good balance between performance and isolation. Each thread gets its own session, avoiding contention while reusing sessions within the same thread. Best for: Multi-threaded applications where each thread handles multiple requests.