Class GrpcJsonConfiguration
java.lang.Object
io.micronaut.protobuf.json.GrpcJsonConfiguration
@ConfigurationProperties("micronaut.grpc.json")
@Requires(classes=GrpcProxyController.class)
public class GrpcJsonConfiguration
extends Object
Configuration properties for enabling and configuring the gRPC JSON proxy feature in a Micronaut application.
This configuration class enables support for exposing gRPC services via JSON endpoints by leveraging the
This class is marked as experimental and may change in future versions of the framework.
This configuration class enables support for exposing gRPC services via JSON endpoints by leveraging the
GrpcProxyController. The configuration is activated only when the
GrpcProxyController class is available in the classpath.
This class is marked as experimental and may change in future versions of the framework.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongintvoidsetMaxResponseBytes(long maxResponseBytes) Sets the maximum estimated serialized response size in bytes.voidsetMaxResponseMessages(int maxResponseMessages) Sets the maximum number of messages collected from a streaming response.
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
GrpcJsonConfiguration
public GrpcJsonConfiguration()
-
-
Method Details
-
getMaxResponseMessages
public int getMaxResponseMessages()- Returns:
- The maximum number of messages collected from a streaming response
- Since:
- 5.1.0
-
setMaxResponseMessages
public void setMaxResponseMessages(int maxResponseMessages) Sets the maximum number of messages collected from a streaming response.- Parameters:
maxResponseMessages- The maximum message count- Since:
- 5.1.0
-
getMaxResponseBytes
public long getMaxResponseBytes()- Returns:
- The maximum estimated serialized response size in bytes
- Since:
- 5.1.0
-
setMaxResponseBytes
public void setMaxResponseBytes(long maxResponseBytes) Sets the maximum estimated serialized response size in bytes.- Parameters:
maxResponseBytes- The maximum response size- Since:
- 5.1.0
-