Example usage for org.apache.shiro.subject.support SubjectThreadState restore

List of usage examples for org.apache.shiro.subject.support SubjectThreadState restore

Introduction

In this page you can find the example usage for org.apache.shiro.subject.support SubjectThreadState restore.

Prototype

public void restore() 

Source Link

Document

ThreadContext#remove Remove s all thread-state that was bound by this instance.

Usage

From source file:de.cosmocode.palava.ipc.security.IpcCallSecurityContext.java

License:Apache License

@Override
public void eventIpcCallDestroy(IpcCall call) {
    final SubjectThreadState state = call.remove(CALL_KEY);

    LOG.trace("Switching thread back to pre-call state");
    state.restore();
}