Examples of ttlSeconds()


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

      FuturePut fp2 = p1.put(Number160.createHash("key1")).data(data).start().awaitUninterruptibly();
      Assert.assertTrue(fp2.isSuccess());

      Data update = data.duplicateMeta();
      update.ttlSeconds(10);

      FuturePut fp3 = p1.put(Number160.createHash("key1")).putMeta().data(update).start()
              .awaitUninterruptibly();
      System.err.println(fp3.failedReason());
      Assert.assertTrue(fp3.isSuccess());
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.