Java Code Examples for com.hazelcast.nio.ObjectDataInput#readLong()
The following examples show how to use
com.hazelcast.nio.ObjectDataInput#readLong() .
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: BackupAttachLogicalNodeOperation.java From snowcast with Apache License 2.0 | 6 votes |
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); logicalNodeId = in.readInt(); address = new Address(); address.readData(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
Example 3
Source File: BackupDetachLogicalNodeOperation.java From snowcast with Apache License 2.0 | 6 votes |
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); logicalNodeId = in.readInt(); address = new Address(); address.readData(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
Example 4
Source File: MessageStatus.java From lannister with Apache License 2.0 | 5 votes |
@Override public void readData(ObjectDataInput in) throws IOException { messageKey = in.readUTF(); clientId = in.readUTF(); messageId = in.readInt(); topicName = in.readUTF(); long rawLong = in.readLong(); createTime = rawLong != Long.MIN_VALUE ? new Date(rawLong) : null; rawLong = in.readLong(); updateTime = rawLong != Long.MIN_VALUE ? new Date(rawLong) : null; }
Example 5
Source File: WorkUnit.java From telekom-workflow-engine with MIT License | 5 votes |
@Override public void readData( ObjectDataInput objectDataInput ) throws IOException{ woinRefNum = objectDataInput.readLong(); type = WorkType.valueOf( objectDataInput.readUTF() ); woitRefNum = objectDataInput.readLong(); if( woitRefNum == 0 ){ woitRefNum = null; } }
Example 6
Source File: BackupCreateSequencerDefinitionOperation.java From snowcast with Apache License 2.0 | 5 votes |
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
Example 7
Source File: CreateSequencerDefinitionOperation.java From snowcast with Apache License 2.0 | 5 votes |
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
Example 8
Source File: AttachLogicalNodeOperation.java From snowcast with Apache License 2.0 | 5 votes |
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
Example 9
Source File: DetachLogicalNodeOperation.java From snowcast with Apache License 2.0 | 5 votes |
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); logicalNodeId = in.readInt(); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
Example 10
Source File: SequencerDefinitionSerializerHook.java From snowcast with Apache License 2.0 | 5 votes |
@Override public SequencerDefinition read(@Nonnull ObjectDataInput in) throws IOException { String sequencerName = in.readUTF(); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); return new SequencerDefinition(sequencerName, epoch, maxLogicalNodeCount, backupCount); }
Example 11
Source File: PredicateOperationCounter.java From hazelcast-simulator with Apache License 2.0 | 5 votes |
public void readData(ObjectDataInput in) throws IOException { predicateBuilderCount = in.readLong(); sqlStringCount = in.readLong(); pagePredicateCount = in.readLong(); updateEmployeeCount = in.readLong(); destroyCount = in.readLong(); }
Example 12
Source File: DataSerializableDomainObject.java From hazelcast-simulator with Apache License 2.0 | 5 votes |
@Override public void readData(ObjectDataInput in) throws IOException { key = in.readUTF(); stringVal = in.readUTF(); doubleVal = in.readDouble(); longVal = in.readLong(); intVal = in.readInt(); }
Example 13
Source File: HazelcastSerializationAdapter.java From bucket4j with Apache License 2.0 | 4 votes |
@Override public long readLong(ObjectDataInput source) throws IOException { return source.readLong(); }
Example 14
Source File: HazelcastSerializationAdapter.java From bucket4j with Apache License 2.0 | 4 votes |
@Override public long readLong(ObjectDataInput source) throws IOException { return source.readLong(); }
Example 15
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()); }
Example 16
Source File: ReliableTopicTest.java From hazelcast-simulator with Apache License 2.0 | 4 votes |
@Override public void readData(ObjectDataInput in) throws IOException { thread = in.readUTF(); value = in.readLong(); }