We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc44d4b commit e492b04Copy full SHA for e492b04
1 file changed
google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
@@ -702,11 +702,11 @@ private static class MessagesBatch {
702
private int batchedBytes;
703
private String orderingKey;
704
705
- public MessagesBatch(String orderingKey) {
+ private MessagesBatch(String orderingKey) {
706
this.orderingKey = orderingKey;
707
}
708
709
- public OutstandingBatch popOutstandingBatch() {
+ private OutstandingBatch popOutstandingBatch() {
710
OutstandingBatch batch = new OutstandingBatch(messages, batchedBytes, orderingKey);
711
reset();
712
return batch;
0 commit comments