Package io.grpc.xds
Enum RouterFilter
- All Implemented Interfaces:
Filter
,Filter.ClientInterceptorBuilder
,Filter.ServerInterceptorBuilder
,Serializable
,Comparable<RouterFilter>
enum RouterFilter
extends Enum<RouterFilter>
implements Filter, Filter.ClientInterceptorBuilder, Filter.ServerInterceptorBuilder
Router filter implementation. Currently this filter does not parse any field in the config.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.grpc.xds.Filter
Filter.ClientInterceptorBuilder, Filter.FilterConfig, Filter.NamedFilterConfig, Filter.ServerInterceptorBuilder
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Filter.FilterConfig
(package private) static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.ClientInterceptor
buildClientInterceptor
(Filter.FilterConfig config, Filter.FilterConfig overrideConfig, io.grpc.LoadBalancer.PickSubchannelArgs args, ScheduledExecutorService scheduler) io.grpc.ServerInterceptor
buildServerInterceptor
(Filter.FilterConfig config, Filter.FilterConfig overrideConfig) ConfigOrError
<? extends Filter.FilterConfig> parseFilterConfig
(com.google.protobuf.Message rawProtoMessage) Parses the top-level filter config from raw proto message.ConfigOrError
<? extends Filter.FilterConfig> parseFilterConfigOverride
(com.google.protobuf.Message rawProtoMessage) Parses the per-filter override filter config from raw proto message.String[]
typeUrls()
The proto message types supported by this filter.static RouterFilter
Returns the enum constant of this type with the specified name.static RouterFilter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
TYPE_URL
- See Also:
-
ROUTER_CONFIG
-
-
Constructor Details
-
RouterFilter
private RouterFilter()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
typeUrls
Description copied from interface:Filter
The proto message types supported by this filter. A filter will be registered by each of its supported message types. -
parseFilterConfig
public ConfigOrError<? extends Filter.FilterConfig> parseFilterConfig(com.google.protobuf.Message rawProtoMessage) Description copied from interface:Filter
Parses the top-level filter config from raw proto message. The message may be either aAny
or aStruct
.- Specified by:
parseFilterConfig
in interfaceFilter
-
parseFilterConfigOverride
public ConfigOrError<? extends Filter.FilterConfig> parseFilterConfigOverride(com.google.protobuf.Message rawProtoMessage) Description copied from interface:Filter
Parses the per-filter override filter config from raw proto message. The message may be either aAny
or aStruct
.- Specified by:
parseFilterConfigOverride
in interfaceFilter
-
buildClientInterceptor
@Nullable public io.grpc.ClientInterceptor buildClientInterceptor(Filter.FilterConfig config, @Nullable Filter.FilterConfig overrideConfig, io.grpc.LoadBalancer.PickSubchannelArgs args, ScheduledExecutorService scheduler) - Specified by:
buildClientInterceptor
in interfaceFilter.ClientInterceptorBuilder
-
buildServerInterceptor
@Nullable public io.grpc.ServerInterceptor buildServerInterceptor(Filter.FilterConfig config, @Nullable Filter.FilterConfig overrideConfig) - Specified by:
buildServerInterceptor
in interfaceFilter.ServerInterceptorBuilder
-