curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cammckenzie <...@git.apache.org>
Subject [GitHub] curator pull request #218: [CURATOR-407] Added ttl suppport to Create transa...
Date Wed, 03 May 2017 22:45:31 GMT
Github user cammckenzie commented on a diff in the pull request:

    https://github.com/apache/curator/pull/218#discussion_r114670616
  
    --- 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 --
    
    I'm sure there's a reason for this approach, but can you enlighten me as to why you don't
just add the withTtl() method to the TransactionCreateBuilder and not introduce the TransactionCreateBuilder2?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message