複数のリードレプリカエンドポイントを Gremlin Java 接続プールに追加する
Gremlin Java Cluster オブジェクトを作成するとき、.addContactPoint() メソッドを使用して複数のリードレプリカインスタンスを接続プールの接点に追加することができます。
Cluster.Builder readerBuilder = Cluster.build() .port(8182) .minConnectionPoolSize(…) .maxConnectionPoolSize(…) ……… .addContactPoint("reader-endpoint-1") .addContactPoint("reader-endpoint-2")