Class GrpcBridgeOptions
java.lang.Object
io.vertx.ext.bridge.BridgeOptions
io.vertx.eventbus.bridge.grpc.GrpcBridgeOptions
gRPC bridge options.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInboundPermitted(PermittedOptions permitted) Adds an inbound permitted option to the currentBridgeOptions.addOutboundPermitted(PermittedOptions permitted) Adds an outbound permitted option to the currentBridgeOptions.setInboundPermitteds(List<PermittedOptions> inboundPermitted) Sets the list of inbound permitted options.setOutboundPermitteds(List<PermittedOptions> outboundPermitted) Sets the list of outbound permitted options.setReplyTimeout(Duration replyTimeout) The value at which the bridge considers a reply from bridge clients to not happen.Methods inherited from class BridgeOptions
getInboundPermitteds, getOutboundPermitteds, toJson
-
Constructor Details
-
GrpcBridgeOptions
public GrpcBridgeOptions()
-
-
Method Details
-
getReplyTimeout
- Returns:
- the reply timeout
-
setReplyTimeout
The value at which the bridge considers a reply from bridge clients to not happen. When the timeout fires the bridge fails the pending reply.
Explanation: an event-bus reply handler has an implicit timeout, unfortunately this timeout value is not propagated, as such the bridge needs such timeout value. This value is equivalent to
DeliveryOptions.getSendTimeout()- Parameters:
replyTimeout- the timeout- Returns:
- the reference to this object
-
addInboundPermitted
Description copied from class:BridgeOptionsAdds an inbound permitted option to the currentBridgeOptions.- Overrides:
addInboundPermittedin classBridgeOptions- Parameters:
permitted- the inbound permitted- Returns:
- the current
BridgeOptions.
-
setInboundPermitteds
Description copied from class:BridgeOptionsSets the list of inbound permitted options.- Overrides:
setInboundPermittedsin classBridgeOptions- Parameters:
inboundPermitted- the list to use, must not be}. This method use the direct list reference (and doesn't create a copy).invalid @link
{@link null- Returns:
- the current
BridgeOptions.
-
addOutboundPermitted
Description copied from class:BridgeOptionsAdds an outbound permitted option to the currentBridgeOptions.- Overrides:
addOutboundPermittedin classBridgeOptions- Parameters:
permitted- the outbound permitted- Returns:
- the current
BridgeOptions.
-
setOutboundPermitteds
Description copied from class:BridgeOptionsSets the list of outbound permitted options.- Overrides:
setOutboundPermittedsin classBridgeOptions- Parameters:
outboundPermitted- the list to use, must not be}. This method use the direct list reference (and doesn't create a copy).invalid @link
{@link null- Returns:
- the current
BridgeOptions.
-