[
https://issues.apache.org/jira/browse/CURATOR-407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995840#comment-15995840
]
ASF GitHub Bot commented on CURATOR-407:
----------------------------------------
Github user Randgalt commented on a diff in the pull request:
https://github.com/apache/curator/pull/218#discussion_r114671266
--- Diff:
curator-framework/src/main/java/org/apache/curator/framework/api/transaction/TransactionCreateBuilder.java
---
@@ -18,17 +18,17 @@
*/
package org.apache.curator.framework.api.transaction;
-import org.apache.curator.framework.api.ACLCreateModePathAndBytesable;
-import org.apache.curator.framework.api.ACLPathAndBytesable;
-import org.apache.curator.framework.api.Compressible;
-import org.apache.curator.framework.api.CreateModable;
-import org.apache.curator.framework.api.PathAndBytesable;
-
-public interface TransactionCreateBuilder<T> extends
- PathAndBytesable<T>,
- CreateModable<ACLPathAndBytesable<T>>,
- ACLPathAndBytesable<T>,
- ACLCreateModePathAndBytesable<T>,
- Compressible<ACLCreateModePathAndBytesable<T>>
+public interface TransactionCreateBuilder<T> extends
TransactionCreateBuilder2<T>
--- End diff --
What would `withTTL()` return? It could return
`TransactionCreateBuilder<T>` but then you'd be able to do:
```
client.create().withTtl(x).withTtl(x).withTtl(x)...
```
The rest of the DSLs avoid this type of thing.
> Create Transaction DSL is missing TTL support
> ---------------------------------------------
>
> Key: CURATOR-407
> URL: https://issues.apache.org/jira/browse/CURATOR-407
> Project: Apache Curator
> Issue Type: Improvement
> Components: Framework
> Affects Versions: 3.3.0
> Reporter: Jordan Zimmerman
> Fix For: 3.4.0
>
>
> TransactionCreateBuilder is missing TTL support. i.e. you should be able to
> specify a TTL when doing a create transaction.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)