Package com.hazelcast.replicatedmap.record

Examples of com.hazelcast.replicatedmap.record.ReplicatedRecordStore


    }

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        Set<Map.Entry> entries = entrySet.getEntrySet();
        for (Map.Entry entry : entries) {
            recordStore.put(entry.getKey(), entry.getValue());
        }
        return null;
    }
View Full Code Here


    }

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return recordStore.size();
    }
View Full Code Here

    }

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return recordStore.containsKey(key);
    }
View Full Code Here

    @Override
    public Object call()
            throws Exception {
        final ClientEndpoint endpoint = getEndpoint();
        final ReplicatedRecordStore replicatedRecordStore = getReplicatedRecordStore();
        final EntryListener<Object, Object> listener = new ClientReplicatedMapEntryListener();
        String registrationId;
        if (predicate == null) {
            registrationId = replicatedRecordStore.addEntryListener(listener, key);
        } else {
            registrationId = replicatedRecordStore.addEntryListener(listener, predicate, key);
        }
        endpoint.setListenerRegistration(ReplicatedMapService.SERVICE_NAME, getMapName(), registrationId);
        return registrationId;
    }
View Full Code Here

    }

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return recordStore.isEmpty();
    }
View Full Code Here

    }

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return new ReplicatedMapValueCollection(recordStore.values());
    }
View Full Code Here

    }

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return new ReplicatedMapEntrySet(recordStore.entrySet());
    }
View Full Code Here

    @Override
    public Object call()
            throws Exception {

        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        ReplicatedRecord record = recordStore.getReplicatedRecord(key);

        Object value = null;
        long ttl = 0;
        long updateTime = 0;
        if (record != null) {
            value = recordStore.unmarshallValue(record.getValue());
            ttl = record.getTtlMillis();
            updateTime = record.getUpdateTime();
        }
        return new ReplicatedMapGetResponse(value, ttl, updateTime);
    }
View Full Code Here

    }

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return new ReplicatedMapKeySet(recordStore.keySet());
    }
View Full Code Here

    }

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return recordStore.remove(key);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.replicatedmap.record.ReplicatedRecordStore

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.