googleapis / googleapis/google-cloud-java

[java-pubsub] Enforcing max limits set by getApiMaxRequestElementCount() and getApiMaxRequestBytes(). (batch messaging)

Open
#13,042 0 comments 0 reactions 1 assignee Claimed by @michaelpri10 View on GitHub
api: pubsub
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

Enforcing max limits set by getApiMaxRequestElementCount() and getApiMaxRequestBytes().

The limits are documented in the pubsub documentation [here (Quotas and limits on batch messaging).](https://docs.cloud.google.com/pubsub/docs/batch-messaging#quotas_and_limits_on_batch_messaging)
[getApiMaxRequestElementCount()](https://github.com/googleapis/java-pubsub/blob/09c01ed8b24ce019cea629dcb0d45dacfe5f112a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L140) and [getApiMaxRequestBytes()](https://github.com/googleapis/java-pubsub/blob/09c01ed8b24ce019cea629dcb0d45dacfe5f112a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L145) are not new methods, just has not previously been enforced.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.