Example usage for Java org.apache.shiro.subject.support SubjectRunnable fields, constructors, methods, implement or subclass
The text is from its open source code.
SubjectRunnable(Subject subject, Runnable delegate) Creates a new SubjectRunnable that, when executed, will execute the target delegate , but guarantees that it will run associated with the specified Subject . | |
SubjectRunnable(ThreadState threadState, Runnable delegate) Creates a new SubjectRunnable that, when executed, will perform thread state ThreadState#bind binding and guaranteed ThreadState#restore restoration before and after the Runnable Runnable 's execution, respectively. |