sijie commented on a change in pull request #510: Issue-605 BP-15 New
CreateLedger API
URL: https://github.com/apache/bookkeeper/pull/510#discussion_r142485330
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeper.java
##########
@@ -1415,4 +1383,55 @@ static EventLoopGroup getDefaultEventLoopGroup() {
return new NioEventLoopGroup(numThreads, threadFactory);
}
}
+
+ @Override
+ public CreateBuilder newCreateLedgerOp() {
+ return new LedgerCreateOp.CreateBuilderImpl(this);
+ }
+
+ @Override
+ public OpenBuilder newOpenLedgerOp() {
+ return new LedgerOpenOp.OpenBuilderImpl(this);
+ }
+
+ @Override
+ public DeleteBuilder newDeleteLedgerOp() {
+ return new LedgerDeleteOp.DeleteBuilderImpl(this);
+ }
+
+ @VisibleForTesting
+ ReentrantReadWriteLock getCloseLock() {
Review comment:
I suggested to put all getter function together. I see them at two places.
----------------------------------------------------------------
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