com.hazelcast.nio.Address.writeData()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(179)

本文整理了Java中com.hazelcast.nio.Address.writeData()方法的一些代码示例,展示了Address.writeData()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Address.writeData()方法的具体详情如下:
包路径:com.hazelcast.nio.Address
类名称:Address
方法名:writeData

Address.writeData介绍

暂无

代码示例

代码示例来源:origin: com.hazelcast/hazelcast-all

  1. @Override
  2. public void writeData(final ObjectDataOutput out) throws IOException {
  3. localAddress.writeData(out);
  4. boolean hasTarget = targetAddress != null;
  5. out.writeBoolean(hasTarget);
  6. if (hasTarget) {
  7. targetAddress.writeData(out);
  8. }
  9. out.writeBoolean(reply);
  10. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. public void writeData(final ObjectDataOutput out) throws IOException {
  3. localAddress.writeData(out);
  4. boolean hasTarget = targetAddress != null;
  5. out.writeBoolean(hasTarget);
  6. if (hasTarget) {
  7. targetAddress.writeData(out);
  8. }
  9. out.writeBoolean(reply);
  10. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. public void writeData(ObjectDataOutput out)
  3. throws IOException {
  4. super.writeData(out);
  5. address.writeData(out);
  6. }

代码示例来源:origin: com.hazelcast/hazelcast-all

  1. @Override
  2. public void writeData(ObjectDataOutput out)
  3. throws IOException {
  4. super.writeData(out);
  5. address.writeData(out);
  6. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. out.writeInt(partitionId);
  4. out.writeInt(lostReplicaIndex);
  5. eventSource.writeData(out);
  6. }

代码示例来源:origin: com.hazelcast/hazelcast-all

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. out.writeInt(partitionId);
  4. out.writeInt(lostReplicaIndex);
  5. eventSource.writeData(out);
  6. }

代码示例来源:origin: com.hazelcast/hazelcast-all

  1. @Override
  2. protected void writeInternal(ObjectDataOutput out) throws IOException {
  3. super.writeInternal(out);
  4. initiator.writeData(out);
  5. out.writeUTF(txnId);
  6. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. protected void writeInternal(ObjectDataOutput out) throws IOException {
  3. super.writeInternal(out);
  4. initiator.writeData(out);
  5. out.writeUTF(txnId);
  6. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. address.writeData(out);
  4. out.writeUTF(uuid);
  5. out.writeBoolean(liteMember);
  6. out.writeObject(version);
  7. Map<String, Object> attributes = new HashMap<String, Object>(this.attributes);
  8. out.writeInt(attributes.size());
  9. for (Map.Entry<String, Object> entry : attributes.entrySet()) {
  10. out.writeUTF(entry.getKey());
  11. IOUtil.writeAttributeValue(entry.getValue(), out);
  12. }
  13. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. private static void writePartitionReplicaLegacy(ObjectDataOutput out, PartitionReplica destination) throws IOException {
  2. destination.address().writeData(out);
  3. out.writeUTF(destination.uuid());
  4. }

代码示例来源:origin: com.hazelcast/hazelcast-all

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. out.writeUTF(name);
  4. out.writeInt(eventType.getType());
  5. caller.writeData(out);
  6. out.writeData(data);
  7. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. out.writeUTF(id);
  4. out.writeUTF(serviceName);
  5. out.writeUTF(topic);
  6. subscriber.writeData(out);
  7. out.writeObject(filter);
  8. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. protected void writeInternal(ObjectDataOutput out) throws IOException {
  3. super.writeInternal(out);
  4. out.writeObject(stateChange);
  5. initiator.writeData(out);
  6. out.writeUTF(txnId);
  7. out.writeBoolean(isTransient);
  8. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. out.writeUTF(name);
  4. out.writeInt(eventType.getType());
  5. caller.writeData(out);
  6. out.writeData(data);
  7. }

代码示例来源:origin: com.hazelcast/hazelcast-all

  1. @Override
  2. protected void writeInternal(ObjectDataOutput out) throws IOException {
  3. super.writeInternal(out);
  4. out.writeObject(stateChange);
  5. initiator.writeData(out);
  6. out.writeUTF(txnId);
  7. out.writeBoolean(isTransient);
  8. }

代码示例来源:origin: com.hazelcast/hazelcast-all

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. out.writeUTF(id);
  4. out.writeUTF(serviceName);
  5. out.writeUTF(topic);
  6. subscriber.writeData(out);
  7. out.writeObject(filter);
  8. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. out.writeUTF(name);
  4. out.writeInt(eventType.getType());
  5. caller.writeData(out);
  6. out.writeData(data);
  7. }

代码示例来源:origin: com.hazelcast/hazelcast-all

  1. @Override
  2. public void writeData(ObjectDataOutput out) throws IOException {
  3. out.writeUTF(name);
  4. out.writeInt(eventType.getType());
  5. caller.writeData(out);
  6. out.writeData(data);
  7. }

代码示例来源:origin: hazelcast/hazelcast-jet

  1. @Override
  2. protected void writeInternal(ObjectDataOutput out) throws IOException {
  3. super.writeInternal(out);
  4. out.writeObject(stateChange);
  5. initiator.writeData(out);
  6. out.writeUTF(txnId);
  7. out.writeLong(leaseTime);
  8. out.writeInt(partitionStateVersion);
  9. // RU_COMPAT_V3_10
  10. if (out.getVersion().isGreaterOrEqual(Versions.V3_11)) {
  11. out.writeInt(memberListVersion);
  12. }
  13. }

代码示例来源:origin: noctarius/snowcast

  1. @Override
  2. protected void writeInternal(ObjectDataOutput out)
  3. throws IOException {
  4. super.writeInternal(out);
  5. out.writeInt(logicalNodeId);
  6. address.writeData(out);
  7. out.writeLong(definition.getEpoch().getEpochOffset());
  8. out.writeInt(definition.getMaxLogicalNodeCount());
  9. out.writeShort(definition.getBackupCount());
  10. }

相关文章