/** Removes session from src sessions list. * */ static void unLinkSession(JISession src, JISession tobeunlinked) { if (src.sessionInDestroy) return; if (src.equals(tobeunlinked)) return; synchronized (mutex) { src.links.remove(tobeunlinked); } }
/** * Removes session from src sessions list. */ static void unLinkSession ( final JISession src, final JISession tobeunlinked ) { if ( src.sessionInDestroy ) { return; } if ( src.equals ( tobeunlinked ) ) { return; } synchronized ( mutex ) { src.links.remove ( tobeunlinked ); } }
/**<p> Links the src with target. These two sessions can now be destroyed in a cascade effect. * </p> * * @param session */ static void linkTwoSessions(JISession src, JISession target) { if (src.sessionInDestroy || target.sessionInDestroy) return; if (src.equals(target)) return; synchronized (mutex) { if (!src.links.contains(target)) { src.links.add(target); } } }
/**<p> Links the src with target. These two sessions can now be destroyed in a cascade effect. * </p> * * @param session */ static void linkTwoSessions(JISession src, JISession target) { if (src.sessionInDestroy || target.sessionInDestroy) return; if (src.equals(target)) return; synchronized (mutex) { if (!src.links.contains(target)) { src.links.add(target); } } }
/** Removes session from src sessions list. * */ static void unLinkSession(JISession src, JISession tobeunlinked) { if (src.sessionInDestroy) return; if (src.equals(tobeunlinked)) return; synchronized (mutex) { src.links.remove(tobeunlinked); } }
/** * <p> * Links the src with target. These two sessions can now be destroyed in a * cascade effect. * </p> * * @param session */ static void linkTwoSessions ( final JISession src, final JISession target ) { if ( src.sessionInDestroy || target.sessionInDestroy ) { return; } if ( src.equals ( target ) ) { return; } synchronized ( mutex ) { if ( !src.links.contains ( target ) ) { src.links.add ( target ); } } }