Class ThreadLocalContextStorage.ScopeImpl

  • All Implemented Interfaces:
    Scope, java.lang.AutoCloseable
    Enclosing class:
    ThreadLocalContextStorage

    private class ThreadLocalContextStorage.ScopeImpl
    extends java.lang.Object
    implements Scope
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ScopeImpl​(Context beforeAttach, Context toAttach)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from class java.lang.Object

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

      • beforeAttach

        @Nullable
        private final Context beforeAttach
      • toAttach

        private final Context toAttach
      • closed

        private boolean closed
    • Constructor Detail

      • ScopeImpl

        private ScopeImpl​(@Nullable
                          Context beforeAttach,
                          Context toAttach)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface Scope