use of org.apereo.portal.utils.SerializableObject in project uPortal by Jasig.
the class PortalEventFactoryImpl method getEventSessionMutex.
/** Get a session scoped mutex specific to this class */
protected final Object getEventSessionMutex(HttpSession session) {
synchronized (WebUtils.getSessionMutex(session)) {
SerializableObject mutex = (SerializableObject) session.getAttribute(EVENT_SESSION_MUTEX);
if (mutex == null) {
mutex = new SerializableObject();
session.setAttribute(EVENT_SESSION_MUTEX, mutex);
}
return mutex;
}
}
Aggregations