Package com.hazelcast.multimap.impl

Examples of com.hazelcast.multimap.impl.MultiMapContainer


        super(name, dataKey, threadId);
        this.ttl = ttl;
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        if (!container.extendLock(dataKey, getCallerUuid(), threadId, LOCK_EXTENSION_TIME_IN_MILLIS)) {
            throw new TransactionException(
                    "Lock is not owned by the transaction! -> " + container.getLockOwnerInfo(dataKey)
            );
        }
        response = true;
    }
View Full Code Here


        this.recordId = recordId;
        this.value = value;
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        MultiMapWrapper wrapper = container.getMultiMapWrapperOrNull(dataKey);
        response = true;
        if (wrapper == null || !wrapper.containsRecordId(recordId)) {
            response = false;
            return;
        }
View Full Code Here

    public ValuesOperation(String name) {
        super(name);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
        response = new MultiMapResponse(container.values(), getValueCollectionType(container));
    }
View Full Code Here

    public SizeOperation(String name) {
        super(name);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        response = container.size();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
    }
View Full Code Here

    public RemoveAllOperation(String name, Data dataKey, long threadId) {
        super(name, dataKey, threadId);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        coll = remove(getResponseHandler().isLocal());
        response = new MultiMapResponse(coll, getValueCollectionType(container));
    }
View Full Code Here

    public Operation getBackupOperation() {
        return new RemoveAllBackupOperation(name, dataKey);
    }

    public void onWaitExpire() {
        MultiMapContainer container = getOrCreateContainer();
        MultiMapConfig.ValueCollectionType valueCollectionType = getValueCollectionType(container);
        getResponseHandler().sendResponse(new MultiMapResponse(null, valueCollectionType));
    }
View Full Code Here

    public EntrySetOperation(String name) {
        super(name);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
        response = new EntrySetResponse(container.copyCollections(), getNodeEngine());
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.multimap.impl.MultiMapContainer

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.