Java Code Examples for com.hazelcast.nio.ObjectDataInput#readObject()

The following examples show how to use com.hazelcast.nio.ObjectDataInput#readObject() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogicalNodeTable.java    From snowcast with Apache License 2.0 6 votes vote down vote up
@Nonnull
static LogicalNodeTable readLogicalNodeTable(@Nonnegative int partitionId, @Nonnull ObjectDataInput in)
        throws IOException {

    SequencerDefinition definition = in.readObject();
    short size = in.readShort();

    Object[] assignmentTable = new Object[definition.getBoundedMaxLogicalNodeCount()];
    for (int i = 0; i < size; i++) {
        short index = in.readShort();
        Address address = new Address();
        address.readData(in);
        assignmentTable[index] = address;
    }
    return new LogicalNodeTable(partitionId, definition, assignmentTable);
}
 
Example 2
Source File: MapOperationCounter.java    From hazelcast-simulator with Apache License 2.0 6 votes vote down vote up
public void readData(ObjectDataInput in) throws IOException {
    putCount = in.readObject();
    putAsyncCount = in.readObject();

    putTTLCount = in.readObject();
    putAsyncTTLCount = in.readObject();

    putTransientCount = in.readObject();
    putIfAbsentCount = in.readObject();

    replaceCount = in.readObject();

    getCount = in.readObject();
    getAsyncCount = in.readObject();

    removeCount = in.readObject();
    removeAsyncCount = in.readObject();

    deleteCount = in.readObject();
    destroyCount = in.readObject();
}
 
Example 3
Source File: SequencerReplicationOperation.java    From snowcast with Apache License 2.0 5 votes vote down vote up
@Override
protected void readInternal(ObjectDataInput in)
        throws IOException {

    super.readInternal(in);
    partitionReplication = in.readObject();
}
 
Example 4
Source File: EntryListenerImpl.java    From hazelcast-simulator with Apache License 2.0 5 votes vote down vote up
@Override
public void readData(ObjectDataInput in) throws IOException {
    addCount = in.readObject();
    removeCount = in.readObject();
    updateCount = in.readObject();
    evictCount = in.readObject();

    minDelayMs = in.readInt();
    maxDelayMs = in.readInt();
}
 
Example 5
Source File: HazelcastSerializationAdapter.java    From bucket4j with Apache License 2.0 4 votes vote down vote up
@Override
public <T> T readObject(ObjectDataInput source, Class<T> type) throws IOException {
    return source.readObject(type);
}
 
Example 6
Source File: HazelcastSerializationAdapter.java    From bucket4j with Apache License 2.0 4 votes vote down vote up
@Override
public Object readObject(ObjectDataInput source) throws IOException {
    return source.readObject();
}
 
Example 7
Source File: HazelcastSerializationAdapter.java    From bucket4j with Apache License 2.0 4 votes vote down vote up
@Override
public <T> T readObject(ObjectDataInput source, Class<T> type) throws IOException {
    return source.readObject(type);
}
 
Example 8
Source File: HazelcastSerializationAdapter.java    From bucket4j with Apache License 2.0 4 votes vote down vote up
@Override
public Object readObject(ObjectDataInput source) throws IOException {
    return source.readObject();
}
 
Example 9
Source File: EventCount.java    From hazelcast-simulator with Apache License 2.0 4 votes vote down vote up
public void readData(ObjectDataInput in) throws IOException {
    addCount = in.readObject();
    removeCount = in.readObject();
    updateCount = in.readObject();
    evictCount = in.readObject();
}
 
Example 10
Source File: MultiValueMapTest.java    From hazelcast-simulator with Apache License 2.0 4 votes vote down vote up
@Override
public void readData(ObjectDataInput in) throws IOException {
    count = in.readInt();
    payloadField = in.readObject();
}
 
Example 11
Source File: ExtractorMapTest.java    From hazelcast-simulator with Apache License 2.0 4 votes vote down vote up
@Override
public void readData(ObjectDataInput in) throws IOException {
    count = in.readInt();
    payloadField = in.readObject();
}