You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2017/05/02 03:57:01 UTC
[17/20] curator git commit: intermediate
AsyncTransactionCreateBuilder DSL methods should return AsyncPathAndBytesable
not AsynccPathable
intermediate AsyncTransactionCreateBuilder DSL methods should return AsyncPathAndBytesable not AsynccPathable
Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/35f5d274
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/35f5d274
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/35f5d274
Branch: refs/heads/CURATOR-397
Commit: 35f5d274e572b91332ab04f3d03f79938cd216f3
Parents: 086c5b4
Author: randgalt <ra...@apache.org>
Authored: Sat Apr 29 14:10:25 2017 -0500
Committer: randgalt <ra...@apache.org>
Committed: Sat Apr 29 14:10:25 2017 -0500
----------------------------------------------------------------------
.../curator/x/async/api/AsyncTransactionCreateBuilder.java | 8 ++++----
.../curator/x/async/details/AsyncTransactionOpImpl.java | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/curator/blob/35f5d274/curator-x-async/src/main/java/org/apache/curator/x/async/api/AsyncTransactionCreateBuilder.java
----------------------------------------------------------------------
diff --git a/curator-x-async/src/main/java/org/apache/curator/x/async/api/AsyncTransactionCreateBuilder.java b/curator-x-async/src/main/java/org/apache/curator/x/async/api/AsyncTransactionCreateBuilder.java
index 439db81..81da5c0 100644
--- a/curator-x-async/src/main/java/org/apache/curator/x/async/api/AsyncTransactionCreateBuilder.java
+++ b/curator-x-async/src/main/java/org/apache/curator/x/async/api/AsyncTransactionCreateBuilder.java
@@ -34,7 +34,7 @@ public interface AsyncTransactionCreateBuilder extends AsyncPathAndBytesable<Cur
* @param createMode mode
* @return this
*/
- AsyncPathable<CuratorOp> withMode(CreateMode createMode);
+ AsyncPathAndBytesable<CuratorOp> withMode(CreateMode createMode);
/**
* Set an ACL list (default is {@link org.apache.zookeeper.ZooDefs.Ids#OPEN_ACL_UNSAFE})
@@ -42,14 +42,14 @@ public interface AsyncTransactionCreateBuilder extends AsyncPathAndBytesable<Cur
* @param aclList the ACL list to use
* @return this
*/
- AsyncPathable<CuratorOp> withACL(List<ACL> aclList);
+ AsyncPathAndBytesable<CuratorOp> withACL(List<ACL> aclList);
/**
* Cause the data to be compressed using the configured compression provider
*
* @return this
*/
- AsyncPathable<CuratorOp> compressed();
+ AsyncPathAndBytesable<CuratorOp> compressed();
/**
* Specify mode, acl list and compression
@@ -62,5 +62,5 @@ public interface AsyncTransactionCreateBuilder extends AsyncPathAndBytesable<Cur
* @see #compressed()
* @return this
*/
- AsyncPathable<CuratorOp> withOptions(CreateMode createMode, List<ACL> aclList, boolean compressed);
+ AsyncPathAndBytesable<CuratorOp> withOptions(CreateMode createMode, List<ACL> aclList, boolean compressed);
}
http://git-wip-us.apache.org/repos/asf/curator/blob/35f5d274/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
----------------------------------------------------------------------
diff --git a/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java b/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
index 89f0a22..0be720f 100644
--- a/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
+++ b/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
@@ -56,28 +56,28 @@ class AsyncTransactionOpImpl implements AsyncTransactionOp
private boolean compressed = false;
@Override
- public AsyncPathable<CuratorOp> withMode(CreateMode createMode)
+ public AsyncPathAndBytesable<CuratorOp> withMode(CreateMode createMode)
{
this.createMode = Objects.requireNonNull(createMode, "createMode cannot be null");
return this;
}
@Override
- public AsyncPathable<CuratorOp> withACL(List<ACL> aclList)
+ public AsyncPathAndBytesable<CuratorOp> withACL(List<ACL> aclList)
{
this.aclList = aclList;
return this;
}
@Override
- public AsyncPathable<CuratorOp> compressed()
+ public AsyncPathAndBytesable<CuratorOp> compressed()
{
compressed = true;
return this;
}
@Override
- public AsyncPathable<CuratorOp> withOptions(CreateMode createMode, List<ACL> aclList, boolean compressed)
+ public AsyncPathAndBytesable<CuratorOp> withOptions(CreateMode createMode, List<ACL> aclList, boolean compressed)
{
this.createMode = Objects.requireNonNull(createMode, "createMode cannot be null");
this.aclList = aclList;