Class ReactiveScope

java.lang.Object
com.machinezoo.hookless.ReactiveScope

@StubDocs public class ReactiveScope extends Object
Thread-local context for reactive computations that collects reactive dependencies.
  • Constructor Details

    • ReactiveScope

      public ReactiveScope()
  • Method Details

    • current

      public static ReactiveScope current()
    • enter

      public com.machinezoo.closeablescope.CloseableScope enter()
    • ignore

      public static com.machinezoo.closeablescope.CloseableScope ignore()
    • versions

      public Collection<ReactiveVariable.Version> versions()
    • watch

      public void watch(ReactiveVariable<?> variable)
    • watch

      public void watch(ReactiveVariable<?> variable, long version)
    • blocked

      public boolean blocked()
    • block

      public void block()
    • nonblocking

      public static com.machinezoo.closeablescope.CloseableScope nonblocking()
    • freeze

      public <T> T freeze(Object key, Supplier<T> supplier)
    • freezes

      public ReactiveFreezes freezes()
    • freezes

      public void freezes(ReactiveFreezes freezes)
    • pin

      public <T> T pin(Object key, Supplier<T> supplier)
    • pins

      public ReactivePins pins()
    • pins

      public void pins(ReactivePins pins)
    • toString

      public String toString()
      Overrides:
      toString in class Object