Package com.hazelcast.nio

Examples of com.hazelcast.nio.ObjectDataOutput.writeObject()


    public void write(PortableWriter writer) throws IOException {
        writer.writeUTF("n", name);
        writer.writeUTF("u", uuid);
        writer.writeInt("p", partitionId);
        ObjectDataOutput rawDataOutput = writer.getRawDataOutput();
        rawDataOutput.writeObject(callable);
    }

    @Override
    public void read(PortableReader reader) throws IOException {
        name = reader.readUTF("n");
View Full Code Here


    @Override
    public void write(PortableWriter writer) throws IOException {
        writer.writeUTF("n", name);
        writer.writeUTF("u", uuid);
        ObjectDataOutput rawDataOutput = writer.getRawDataOutput();
        rawDataOutput.writeObject(callable);
        target.writeData(rawDataOutput);
    }

    @Override
    public void read(PortableReader reader) throws IOException {
View Full Code Here

    public void writePortable(PortableWriter writer)
            throws IOException {
        writer.writeLong("ttlMillis", ttlMillis);
        writer.writeLong("updateTime", updateTime);
        ObjectDataOutput out = writer.getRawDataOutput();
        out.writeObject(value);
    }

    @Override
    public void readPortable(PortableReader reader)
            throws IOException {
View Full Code Here

    @Override
    public void write(PortableWriter writer)
            throws IOException {
        super.write(writer);
        ObjectDataOutput out = writer.getRawDataOutput();
        out.writeObject(key);
    }

    @Override
    public void read(PortableReader reader)
            throws IOException {
View Full Code Here

    @Override
    public void write(PortableWriter writer)
            throws IOException {
        super.write(writer);
        ObjectDataOutput out = writer.getRawDataOutput();
        out.writeObject(key);
        out.writeObject(predicate);
    }

    @Override
    public void read(PortableReader reader)
View Full Code Here

    public void write(PortableWriter writer)
            throws IOException {
        super.write(writer);
        ObjectDataOutput out = writer.getRawDataOutput();
        out.writeObject(key);
        out.writeObject(predicate);
    }

    @Override
    public void read(PortableReader reader)
            throws IOException {
View Full Code Here

    public void writePortable(PortableWriter writer)
            throws IOException {
        writer.writeInt("size", values.size());
        ObjectDataOutput out = writer.getRawDataOutput();
        for (Object value : values) {
            out.writeObject(value);
        }
    }

    @Override
    public void readPortable(PortableReader reader)
View Full Code Here

    public void writePortable(PortableWriter writer)
            throws IOException {
        writer.writeInt("size", keySet.size());
        ObjectDataOutput out = writer.getRawDataOutput();
        for (Object key : keySet) {
            out.writeObject(key);
        }
    }

    @Override
    public void readPortable(PortableReader reader)
View Full Code Here

    public void write(PortableWriter writer)
            throws IOException {

        super.write(writer);
        ObjectDataOutput out = writer.getRawDataOutput();
        out.writeObject(key);
    }

    @Override
    public void read(PortableReader reader)
            throws IOException {
View Full Code Here

    @Override
    public void write(PortableWriter writer)
            throws IOException {
        super.write(writer);
        ObjectDataOutput out = writer.getRawDataOutput();
        out.writeObject(key);
    }

    @Override
    public void read(PortableReader reader)
            throws IOException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.