Package com.hazelcast.nio.serialization

Examples of com.hazelcast.nio.serialization.Data


    }

    public void read(PortableReader reader) throws IOException {
        super.read(reader);
        last = reader.readBoolean("l");
        value = new Data();
        value.readData(reader.getRawDataInput());
    }
View Full Code Here


        return name;
    }

    @Override
    protected Operation prepareOperation() {
        final Data key = getClientEngine().toData(name);
        return new SignalOperation(namespace, key, threadId, conditionId, all);
    }
View Full Code Here

        return name;
    }

    @Override
    protected Operation prepareOperation() {
        final Data key = getClientEngine().toData(name);
        return new AwaitOperation(namespace, key, threadId, timeout, conditionId);
    }
View Full Code Here

    @Override
    public void read(PortableReader reader) throws IOException {
        threadId = reader.readLong("tid");
        ObjectDataInput in = reader.getRawDataInput();
        key = new Data();
        key.readData(in);
    }
View Full Code Here

                    }
                }
            }
        }
        GetOperation operation = new GetOperation(name, key);
        Data result = (Data) invokeOperation(key, operation);
        if (nearCacheEnabled) {
            int partitionId = nodeEngine.getPartitionService().getPartitionId(key);
            if (!nodeEngine.getPartitionService().getPartitionOwner(partitionId)
                    .equals(nodeEngine.getClusterService().getThisAddress()) || getMapConfig().getNearCacheConfig().isCacheLocalEntries()) {
                mapService.putNearCache(name, key, result);
View Full Code Here

        }
    }

    protected Data putInternal(final Data key, final Data value, final long ttl, final TimeUnit timeunit) {
        PutOperation operation = new PutOperation(name, key, value, getTimeInMillis(ttl, timeunit));
        Data previousValue = (Data) invokeOperation(key, operation);
        invalidateNearCache(key);
        return previousValue;
    }
View Full Code Here

        return putSuccessful;
    }

    protected Data putIfAbsentInternal(final Data key, final Data value, final long ttl, final TimeUnit timeunit) {
        PutIfAbsentOperation operation = new PutIfAbsentOperation(name, key, value, getTimeInMillis(ttl, timeunit));
        Data previousValue = (Data) invokeOperation(key, operation);
        invalidateNearCache(key);
        return previousValue;
    }
View Full Code Here

        return replaceSuccessful;
    }

    protected Data replaceInternal(final Data key, final Data value) {
        ReplaceOperation operation = new ReplaceOperation(name, key, value);
        final Data result = (Data) invokeOperation(key, operation);
        invalidateNearCache(key);
        return result;
    }
View Full Code Here

        return evictSuccess;
    }

    protected Data removeInternal(Data key) {
        RemoveOperation operation = new RemoveOperation(name, key);
        Data previousValue = (Data) invokeOperation(key, operation);
        invalidateNearCache(key);
        return previousValue;
    }
View Full Code Here

        super.read(reader);
        final ObjectDataInput in = reader.getRawDataInput();
        final int size = in.readInt();
        valueList = new ArrayList<Data>(size);
        for (int i=0; i<size; i++){
            final Data value = new Data();
            value.readData(in);
            valueList.add(value);
        }
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.nio.serialization.Data

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.