Search in sources :

Example 1 with DeltaSessionDestroyAttributeEvent

use of org.apache.geode.modules.session.catalina.internal.DeltaSessionDestroyAttributeEvent in project geode by apache.

the class DeltaSession8 method removeAttribute.

public void removeAttribute(String name, boolean notify) {
    checkBackingCacheAvailable();
    if (expired) {
        return;
    }
    synchronized (this.changeLock) {
        // Remove the attribute locally
        super.removeAttribute(name, true);
        // Create the destroy attribute message
        DeltaSessionAttributeEvent event = new DeltaSessionDestroyAttributeEvent(name);
        queueAttributeEvent(event, true);
        // Distribute the update
        if (!isCommitEnabled()) {
            putInRegion(getOperatingRegion(), true, null);
        }
    }
}
Also used : DeltaSessionAttributeEvent(org.apache.geode.modules.session.catalina.internal.DeltaSessionAttributeEvent) DeltaSessionDestroyAttributeEvent(org.apache.geode.modules.session.catalina.internal.DeltaSessionDestroyAttributeEvent)

Example 2 with DeltaSessionDestroyAttributeEvent

use of org.apache.geode.modules.session.catalina.internal.DeltaSessionDestroyAttributeEvent in project geode by apache.

the class DeltaSession7 method removeAttribute.

public void removeAttribute(String name, boolean notify) {
    checkBackingCacheAvailable();
    if (expired) {
        return;
    }
    synchronized (this.changeLock) {
        // Remove the attribute locally
        super.removeAttribute(name, true);
        // Create the destroy attribute message
        DeltaSessionAttributeEvent event = new DeltaSessionDestroyAttributeEvent(name);
        queueAttributeEvent(event, true);
        // Distribute the update
        if (!isCommitEnabled()) {
            putInRegion(getOperatingRegion(), true, null);
        }
    }
}
Also used : DeltaSessionAttributeEvent(org.apache.geode.modules.session.catalina.internal.DeltaSessionAttributeEvent) DeltaSessionDestroyAttributeEvent(org.apache.geode.modules.session.catalina.internal.DeltaSessionDestroyAttributeEvent)

Example 3 with DeltaSessionDestroyAttributeEvent

use of org.apache.geode.modules.session.catalina.internal.DeltaSessionDestroyAttributeEvent in project geode by apache.

the class DeltaSession method removeAttribute.

public void removeAttribute(String name, boolean notify) {
    checkBackingCacheAvailable();
    if (expired) {
        return;
    }
    synchronized (this.changeLock) {
        // Remove the attribute locally
        super.removeAttribute(name, true);
        // Create the destroy attribute message
        DeltaSessionAttributeEvent event = new DeltaSessionDestroyAttributeEvent(name);
        queueAttributeEvent(event, true);
        // Distribute the update
        if (!isCommitEnabled()) {
            putInRegion(getOperatingRegion(), true, null);
        }
    }
}
Also used : DeltaSessionAttributeEvent(org.apache.geode.modules.session.catalina.internal.DeltaSessionAttributeEvent) DeltaSessionDestroyAttributeEvent(org.apache.geode.modules.session.catalina.internal.DeltaSessionDestroyAttributeEvent)

Aggregations

DeltaSessionAttributeEvent (org.apache.geode.modules.session.catalina.internal.DeltaSessionAttributeEvent)3 DeltaSessionDestroyAttributeEvent (org.apache.geode.modules.session.catalina.internal.DeltaSessionDestroyAttributeEvent)3