Top Description Constructors Methods
io.grpc

public abstract Class HandlerRegistry

extends Object
Class Inheritance
Annotations
@ThreadSafe
Imports
java.util.Collections, .List, javax.annotation.Nullable, javax.annotation.concurrent.ThreadSafe

Registry of services and their methods used by servers to dispatching incoming calls.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<ServerServiceDefinition>
getServices()

Returns the ServerServiceDefinitions provided by the registry, or an empty list if not supported by the implementation.

public abstract ServerMethodDefinition<?, ?>

Returns:

the resolved method or null if no method for that name exists.
lookupMethod
(String
to lookup ServerMethodDefinition for.
methodName
,
String
the authority for the desired method (to do virtual hosting). If null the first matching method will be returned.
authority
)

Lookup a ServerMethodDefinition by its fully-qualified name.

public final ServerMethodDefinition<?, ?>

Returns:

the resolved method or null if no method for that name exists.
lookupMethod
(String
to lookup ServerMethodDefinition for.
methodName
)

Lookup a ServerMethodDefinition by its fully-qualified name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HandlerRegistryback to summary
public HandlerRegistry()

Method Detail

getServicesback to summary
public List<ServerServiceDefinition> getServices()

Returns the ServerServiceDefinitions provided by the registry, or an empty list if not supported by the implementation.

Annotations
@ExperimentalApi:https://github.com/grpc/grpc-java/issues/2222
lookupMethodback to summary
public abstract ServerMethodDefinition<?, ?> lookupMethod(String methodName, String authority)

Lookup a ServerMethodDefinition by its fully-qualified name.

Parameters
methodName:String

to lookup ServerMethodDefinition for.

authority:String

the authority for the desired method (to do virtual hosting). If null the first matching method will be returned.

Returns:ServerMethodDefinition<?, ?>

the resolved method or null if no method for that name exists.

Annotations
@Nullable
lookupMethodback to summary
public final ServerMethodDefinition<?, ?> lookupMethod(String methodName)

Lookup a ServerMethodDefinition by its fully-qualified name.

Parameters
methodName:String

to lookup ServerMethodDefinition for.

Returns:ServerMethodDefinition<?, ?>

the resolved method or null if no method for that name exists.

Annotations
@Nullable