Class RemoteContext.Current

java.lang.Object
ch.tocco.nice2.netui.api.remote.RemoteContext.Current
Enclosing interface:
RemoteContext

public static class RemoteContext.Current extends Object
  • Method Details

    • get

      public static Optional<RemoteContext> get()
      Get the context for the current thread.
      Returns:
      The context for the current thread.
    • set

      public static void set(RemoteContext remoteContext)
      Set the context for the current thread.
    • remove

      public static void remove()
      Remove the context for the current thread.
    • with

      public static Invoker with(@Nullable @Nullable RemoteContext remoteContext)
      Get an invoker for the given context.
      Parameters:
      remoteContext - The desired context.
      Returns:
      the invoker.