All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.client.util.CacheStatusEvent Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
package com.alachisoft.ncache.client.util;

import com.alachisoft.ncache.client.CacheStatusEventListener;
import com.alachisoft.ncache.client.ClusterEvent;

public class CacheStatusEvent implements CacheStatusEventListener {
    private CacheStatusEventListener listener;
    protected  final Object _syncPoint = new Object();

    public CacheStatusEvent(CacheStatusEventListener listener) {
        this.listener = listener;
    }

    @Override
    public void onCacheStatusChanged(ClusterEvent event) {
        try {
            synchronized (_syncPoint) {
                this.listener.onCacheStatusChanged(event);
            }
        } catch (Exception exp) {
            throw exp;
        }
        this.listener.onCacheStatusChanged(event);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy