Package com.hazelcast.cache.impl.client

Examples of com.hazelcast.cache.impl.client.CacheRemoveEntryListenerRequest


                        return new CacheAddEntryListenerRequest();
                    }
                };
                constructors[REMOVE_ENTRY_LISTENER] = new ConstructorFunction<Integer, Portable>() {
                    public Portable createNew(Integer arg) {
                        return new CacheRemoveEntryListenerRequest();
                    }
                };
                constructors[LISTENER_REGISTRATION] = new ConstructorFunction<Integer, Portable>() {
                    public Portable createNew(Integer arg) {
                        return new CacheListenerRegistrationRequest();
View Full Code Here


        if (cacheEntryListenerConfiguration == null) {
            throw new NullPointerException("CacheEntryListenerConfiguration can't be " + "null");
        }
        final String regId = removeListenerLocally(cacheEntryListenerConfiguration);
        if (regId != null) {
            CacheRemoveEntryListenerRequest removeReq = new CacheRemoveEntryListenerRequest(nameWithPrefix, regId);
            boolean isDeregistered = clientContext.getListenerService().stopListening(removeReq, regId);

            if (isDeregistered) {
                cacheConfig.removeCacheEntryListenerConfiguration(cacheEntryListenerConfiguration);
                deregisterCompletionListener();
View Full Code Here

        return regs.remove(cacheEntryListenerConfiguration);
    }

    public void deregisterAllCacheEntryListener(Collection<String> listenerRegistrations) {
        for (String regId : listenerRegistrations) {
            CacheRemoveEntryListenerRequest removeReq = new CacheRemoveEntryListenerRequest(nameWithPrefix, regId);
            clientContext.getListenerService().stopListening(removeReq, regId);
        }
    }
View Full Code Here

    protected void deregisterCompletionListener() {
        if (syncListenerRegistrations.isEmpty() && completionRegistrationId != null) {
            synchronized (completionRegistrationMutex) {
                if (completionRegistrationId != null) {
                    CacheRemoveEntryListenerRequest removeRequest = new CacheRemoveEntryListenerRequest(nameWithPrefix,
                            completionRegistrationId);
                    boolean isDeregistered = clientContext.getListenerService()
                            .stopListening(removeRequest, completionRegistrationId);
                    if (isDeregistered) {
                        completionRegistrationId = null;
View Full Code Here

TOP

Related Classes of com.hazelcast.cache.impl.client.CacheRemoveEntryListenerRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.