コード例 #1
0
 public void writeData(DataOutput out) throws IOException {
   boolean hasInterfaceSet = interfaceSet != null && !interfaceSet.isEmpty();
   out.writeByte(ByteUtil.toByte(enabled, hasInterfaceSet));
   if (hasInterfaceSet) {
     out.writeInt(interfaceSet.size());
     for (final String iface : interfaceSet) {
       out.writeUTF(iface);
     }
   }
 }
コード例 #2
0
ファイル: MapConfig.java プロジェクト: gingermike/hazelcast
 public void writeData(DataOutput out) throws IOException {
   out.writeUTF(name);
   out.writeInt(backupCount);
   out.writeInt(asyncBackupCount);
   out.writeInt(evictionPercentage);
   out.writeInt(timeToLiveSeconds);
   out.writeInt(maxIdleSeconds);
   out.writeInt(evictionDelaySeconds);
   maxSizeConfig.writeData(out);
   out.writeByte(ByteUtil.toByte(valueIndexed, readBackupData, cacheValue));
   out.writeUTF(evictionPolicy);
   out.writeUTF(mergePolicy);
   //        out.writeBoolean(clearQuick);
   nearCacheConfig.writeData(out);
   //        TODO: MapStoreConfig mapStoreConfig
 }