Class SecuredConsumer<T>

java.lang.Object
org.gridgain.internal.security.context.SecuredConsumer<T>
All Implemented Interfaces:
Consumer<T>

public class SecuredConsumer<T> extends Object implements Consumer<T>
Wrap consumer with given security context set to the executor's thread local state. After execution the original security context is restored.
  • Method Details

    • accept

      public void accept(T t)
      Specified by:
      accept in interface Consumer<T>