public void markSessionAsInvalid(final String _sessionID)
    {
        ConcurrentHashSet<String> invalidated = Session.get().getApplication()
                        .getMetaData(ConnectionRegistry.INVALIDATED);

        if (invalidated == null) {
            synchronized (ConnectionRegistry.INVALIDATED) {
                invalidated = Session.get().getApplication().getMetaData(ConnectionRegistry.INVALIDATED);
                if (invalidated == null) {
                    invalidated = new ConcurrentHashSet<>();
                    Session.get().getApplication().setMetaData(ConnectionRegistry.INVALIDATED, invalidated);
                }
            }
        }
        invalidated.add(_sessionID);
        ConnectionRegistry.LOG.debug("Marked Session: {} as invalid", _sessionID);
    }
public void markSessionAsInvalid ( final String _sessionID ) { ConcurrentHashSet < String > invalidated = Session . get ( ) . getApplication ( ) . getMetaData ( ConnectionRegistry . INVALIDATED ) ; if ( invalidated == null ) { synchronized ( ConnectionRegistry . INVALIDATED ) { invalidated = Session . get ( ) . getApplication ( ) . getMetaData ( ConnectionRegistry . INVALIDATED ) ; if ( invalidated == null ) { invalidated = new ConcurrentHashSet < > ( ) ; Session . get ( ) . getApplication ( ) . setMetaData ( ConnectionRegistry . INVALIDATED , invalidated ) ; } } } invalidated . add ( _sessionID ) ; ConnectionRegistry . LOG . debug ( "Marked Session: {} as invalid" , _sessionID ) ; }
@param _sessionID session to marked as invalid