Skip to content

Commit e76844e

Browse files
committed
javadoc updates
1 parent 1b99732 commit e76844e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/config/GrpcServerProperties.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ public class GrpcServerProperties {
164164
* The maximum size of metadata allowed to be received. If not set ({@code null}) then
165165
* {@link GrpcUtil#DEFAULT_MAX_HEADER_LIST_SIZE gRPC's default} should be used.
166166
*
167+
* @return The maximum metadata size allowed.
167168
*/
168169
@DataSizeUnit(DataUnit.BYTES)
169170
private DataSize maxInboundMetadataSize = null;
@@ -321,6 +322,16 @@ public void setMaxInboundMessageSize(final DataSize maxInboundMessageSize) {
321322
}
322323
}
323324

325+
/**
326+
* Sets the maximum metadata size allowed to be received by the server. If not set ({@code null}) then it will
327+
* default to {@link GrpcUtil#DEFAULT_MAX_HEADER_LIST_SIZE gRPC's default}. If set to {@code -1} then it will use the
328+
* highest possible limit (not recommended).
329+
*
330+
* @param maxInboundMetadataSize The new maximum size allowed for incoming metadata. {@code -1} for max possible.
331+
* Null to use the gRPC's default.
332+
*
333+
* @see ServerBuilder#maxInboundMetadataSize(int)
334+
*/
324335
public void setMaxInboundMetadataSize(final DataSize maxInboundMetadataSize) {
325336
if (maxInboundMetadataSize == null || maxInboundMetadataSize.toBytes() >= 0) {
326337
this.maxInboundMetadataSize = maxInboundMetadataSize;

0 commit comments

Comments
 (0)