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 Link icon

    • get Link icon

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

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

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

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