@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeUTF("mn", mapName); writer.writeUTF("cn", cacheId); writer.writeInt("bas", batchSize); writer.writeInt("bus", bufferSize); writer.writeLong("ds", delaySeconds); writer.writeBoolean("iv", includeValue); writer.writeBoolean("ps", publishable); writer.writeBoolean("co", coalesce); writer.writeBoolean("po", populate); ObjectDataOutput output = writer.getRawDataOutput(); output.writeObject(predicate); }
@Override protected void writePortableInternal(PortableWriter writer) throws IOException { writer.writeByteArray("pwd", password); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeUTF("username", username); writer.writeInt("age", age); writer.writeBoolean("active", active); }
@Override public void writePortable(PortableWriter out) throws IOException { out.writeUTF("name", name); out.writePortableArray("limbs", limbs); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeInt("e", eventType.getType()); writer.writeUTF("u", uuid); writer.getRawDataOutput().writeData(item); }
@Override public void writePortable(PortableWriter out) throws IOException { out.writeUTF("key", key); out.writeUTF("stringVal", stringVal); out.writeDouble("doubleVal", doubleVal); out.writeLong("longVal", longVal); out.writeInt("intVal", intVal); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeInt("p", partitionId); writer.writeInt("l", lostBackupCount); final ObjectDataOutput out = writer.getRawDataOutput(); out.writeObject(source); }
@Override public void writePortable(PortableWriter out) throws IOException { out.writeUTF("name", name); }
@Override public void writePortable(final PortableWriter writer) throws IOException { writer.writeUTF(DataModelApi.ENDPOINT_TYPE_FIELD, type.name()); writer.writeUTF(DataModelApi.ENDPOINT_NAME_FIELD, endpointName); writer.writeUTF(DataModelApi.ENDPOINT_SERVICE_FIELD, serviceName); writer.writeUTFArray(DataModelApi.ENDPOINT_INTERFACES_FIELD, interfaces); writer.writeUTF(DataModelApi.ENDPOINT_CONTAINER_FIELD, container); writer.writeUTF(DataModelApi.ENDPOINT_COMPONENT_FIELD, component); writer.writeBoolean(DataModelApi.ENDPOINT_RESTORATION_FIELD, inRestoration); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeBoolean("l", collection instanceof List); if (collection == null) { writer.writeInt("s", -1); return; } writer.writeInt("s", collection.size()); final ObjectDataOutput out = writer.getRawDataOutput(); for (Data data : collection) { out.writeData(data); } }
@Override public void write(PortableWriter writer) throws IOException { super.write(writer); writer.writeInt("syncBackupCount", syncBackupCount); writer.writeInt("asyncBackupCount", asyncBackupCount); writer.writeLong("backupDelayNanos", backupDelayNanos); writer.writeInt("partitionId", partitionId); }
@Override public void writePortable(PortableWriter out) throws IOException { out.writeInt("count", count); out.writeIntArray("payloadField", payloadField); }
@Override public void writePortable(PortableWriter writer) throws IOException { // write only required fields for com.devicehive.model.eventbus.Filter writer.writeBoolean("allNetworksAvailable", allNetworksAvailable); writer.writeBoolean("allDeviceTypesAvailable", allDeviceTypesAvailable); writer.writeLongArray("networkIds", networkIds != null ? networkIds.stream().mapToLong(Long::longValue).toArray() : new long[0]); writer.writeLongArray("deviceTypeIds", deviceTypeIds != null ? deviceTypeIds.stream().mapToLong(Long::longValue).toArray() : new long[0]); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeInt("e", eventType.getType()); writer.writeUTF("u", uuid); writer.getRawDataOutput().writeData(item); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeLong("networkId", Objects.nonNull(networkId) ? networkId : 0); writer.writeLong("deviceTypeId", Objects.nonNull(deviceTypeId) ? deviceTypeId : 0); writer.writeUTF("deviceId", deviceId); writer.writeUTF("eventName", eventName); writer.writeUTF("name", name); }