Examples of prepareFlag()


Examples of net.tomp2p.storage.Data.prepareFlag()

      }

      final Data data = backend.get(key);
      if (data != null) {
        // remove prepare flag
        data.prepareFlag(false);

        data.validFromMillis(newData.validFromMillis());
        data.ttlSeconds(newData.ttlSeconds());

        long expiration = data.expirationMillis();
View Full Code Here

Examples of net.tomp2p.storage.Data.prepareFlag()

        Number160 vKey = generateVersionKey(i, content);
        Data data = new Data(content);
        if (!sortedMap.isEmpty()) {
          data.addBasedOn(sortedMap.lastKey());
        }
        data.prepareFlag();
        sortedMap.put(vKey, data);

        // put test data (prepare)
        FuturePut fput = peers[rnd.nextInt(10)].put(locationKey)
            .data(contentKey, sortedMap.get(vKey)).domainKey(domainKey).versionKey(vKey).start();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.