narendly commented on a change in pull request #745: Add RealmAwareZkClient and RealmAwareZkClientFactory interfaces URL: https://github.com/apache/helix/pull/745#discussion_r379164173
########## File path: zookeeper-api/src/main/java/org/apache/helix/zookeeper/api/client/RealmAwareZkClient.java ########## @@ -40,7 +41,24 @@ import org.apache.zookeeper.data.Stat; +/** + * The Realm-aware ZkClient interface. + * NOTE: "Realm-aware" does not necessarily mean that the RealmAwareZkClient instance will be connecting to multiple ZK realms. + * On single-realm mode, RealmAwareZkClient will reject requests going out to other ZK realms than the one set at initialization. + * On multi-realm mode, RealmAwareZkClient will connect to multiple ZK realms but will reject EPHEMERAL AccessMode operations. + */ public interface RealmAwareZkClient { + + /** + * Specifies which mode to run this RealmAwareZkClient on. + * + * SINGLE_REALM: CRUD, change subscription, and EPHEMERAL CreateMode are supported. + * MULTI_REALM: CRUD and change subscription are supported. Operations involving EPHEMERAL CreateMode will throw an UnsupportedOperationException. + */ + enum MODE { + SINGLE_REALM, MULTI_REALM Review comment: updated! ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@helix.apache.org For additional commands, e-mail: reviews-h...@helix.apache.org