public void readData(DataInput in) throws IOException { boolean b[] = ByteUtil.fromByte(in.readByte()); enabled = b[0]; boolean hasInterfaceSet = b[1]; if (hasInterfaceSet) { interfaceSet.clear(); int size = in.readInt(); for (int i = 0; i < size; i++) { interfaceSet.add(in.readUTF()); } } }
public void readData(DataInput in) throws IOException { name = in.readUTF(); backupCount = in.readInt(); asyncBackupCount = in.readInt(); evictionPercentage = in.readInt(); timeToLiveSeconds = in.readInt(); maxIdleSeconds = in.readInt(); evictionDelaySeconds = in.readInt(); maxSizeConfig.readData(in); boolean[] b = ByteUtil.fromByte(in.readByte()); valueIndexed = b[0]; readBackupData = b[1]; cacheValue = b[2]; evictionPolicy = in.readUTF(); mergePolicy = in.readUTF(); // clearQuick = in.readBoolean(); nearCacheConfig = new NearCacheConfig(); nearCacheConfig.readData(in); // TODO: MapStoreConfig mapStoreConfig }