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

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

package com.alachisoft.ncache.client.util;

import com.alachisoft.ncache.client.CacheClientConnectivityChangedListener;
import com.alachisoft.ncache.client.ClientInfo;

public class CacheConnectivity implements CacheClientConnectivityChangedListener {

    protected final Object _syncPoint = new Object();

    private CacheClientConnectivityChangedListener listener;
    public CacheConnectivity(CacheClientConnectivityChangedListener listener) {
        this.listener = listener;
    }

    @Override
    public void onClientConnectivityChanged(String cacheId, ClientInfo client) {
        try{
            synchronized (_syncPoint) {
                this.listener.onClientConnectivityChanged(cacheId, client);
            }
        } catch (Exception exp) {
            throw  exp;
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy