Interface ThreadContextSnapshot

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ThreadContextSnapshot
An immutable snapshot of a particular type of thread context.

The captured context represented by this snapshot can be applied to any number of threads, including concurrently.

Any state that is associated with context applied to a thread should be kept, not within the snapshot, but within the distinct ThreadContextRestorer instance that this ThreadContextSnapshot creates each time it is applied to a thread.

Since:
3.0