Java Code Examples for com.hazelcast.nio.ObjectDataInput#readBoolean()
The following examples show how to use
com.hazelcast.nio.ObjectDataInput#readBoolean() .
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: Session.java From lannister with Apache License 2.0 | 6 votes |
@Override public void readData(ObjectDataInput in) throws IOException { clientId = in.readUTF(); ip = in.readUTF(); port = in.readInt(); isConnected = in.readBoolean(); currentMessageId = in.readInt(); if (in.readBoolean()) { will = new Message(in); } cleanSession = in.readBoolean(); keepAliveSeconds = in.readInt(); long rawLong = in.readLong(); createTime = rawLong != Long.MIN_VALUE ? new Date(rawLong) : null; rawLong = in.readLong(); lastIncomingTime = rawLong != Long.MIN_VALUE ? new Date(rawLong) : null; disposeLock = ClusterDataFactory.INSTANCE.createLock("Session_disposeLock_" + clientId); messageSender = new MessageSender(this); }
Example 2
Source File: Message.java From lannister with Apache License 2.0 | 5 votes |
@Override public void readData(ObjectDataInput in) throws IOException { id = in.readInt(); topicName = in.readUTF(); publisherId = in.readUTF(); message = in.readByteArray(); int rawInt = in.readInt(); qos = rawInt != Byte.MIN_VALUE ? MqttQoS.valueOf(rawInt) : null; isRetain = in.readBoolean(); }
Example 3
Source File: Topic.java From lannister with Apache License 2.0 | 5 votes |
@Override public void readData(ObjectDataInput in) throws IOException { name = in.readUTF(); if (in.readBoolean()) { retainedMessage = new Message(in); } }
Example 4
Source File: DataSerializableEmployee.java From hazelcast-simulator with Apache License 2.0 | 5 votes |
@Override public void readData(ObjectDataInput objectDataInput) throws IOException { id = objectDataInput.readInt(); name = objectDataInput.readUTF(); age = objectDataInput.readInt(); active = objectDataInput.readBoolean(); salary = objectDataInput.readDouble(); }
Example 5
Source File: HazelcastSerializationAdapter.java From bucket4j with Apache License 2.0 | 4 votes |
@Override public boolean readBoolean(ObjectDataInput source) throws IOException { return source.readBoolean(); }
Example 6
Source File: HazelcastSerializationAdapter.java From bucket4j with Apache License 2.0 | 4 votes |
@Override public boolean readBoolean(ObjectDataInput source) throws IOException { return source.readBoolean(); }
Example 7
Source File: HazelcastRegistrationInfo.java From vertx-hazelcast with Apache License 2.0 | 4 votes |
@Override public void readData(ObjectDataInput dataInput) throws IOException { registrationInfo = new RegistrationInfo(dataInput.readUTF(), dataInput.readLong(), dataInput.readBoolean()); }