ivankelly commented on a change in pull request #742: Issue-744 BP-18 introduce 
write flags
URL: https://github.com/apache/bookkeeper/pull/742#discussion_r153546644
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/CreateBuilder.java
 ##########
 @@ -91,6 +93,26 @@
      */
     CreateBuilder withDigestType(DigestType digestType);
 
+    /**
+     * Set write flags. Write wlags specify the behaviour of writes
+     *
+     * @param writeFlags the flags
+     *
+     * @return the builder itself
+     */
+    CreateBuilder withWriteFlags(EnumSet<WriteFlag> writeFlags);
 
 Review comment:
   I think it'd be better to have withDeferredSync. i.e. A builder method for 
each write flag, and not expose the write flag enum to the client in any way.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to