TTL value can be used to decide for how long the document needs to be there in the bucket. By default TTL value is 0, which means it will be there for indefinite time period.
String bucketName = "bucket";
List<String> nodes = Arrays.asList("node1","node2"); // I...