public void invalidate() {

        // Mark collection as invalidated, but do not bother cleaning up if
        // already invalidated
        if (!invalidated.compareAndSet(false, true))
            return;

        // Clean up all stored objects
        cleanupAll();

    }
Invalidates this SharedObjectManager, cleaning up any registered objects
and preventing future registration of objects. If attempts to register
objects are made after this function is invoked, those objects will be
immediately cleaned up.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/sharing/SharedObjectManager.java