ConnectionBuilder

public abstract class ConnectionBuilder

Abstract base for builders of objects that depend on or expose server-side gRPC objects.

A gRPC server can be exposes at a given port or in-process with a given name. In-process arrangements, while being fully-featured are used primarily for testing.

See also

io.grpc.inprocess.InProcessChannelBuilder
io.grpc.inprocess.InProcessServerBuilder

Inheritors

Functions

Link copied to clipboard
public final Optional<Integer> port()
Obtains the port of the connection, or empty Optional for in-process connection.
Link copied to clipboard
public final Optional<String> serverName()
Obtains the name of the in-process connection, or empty Optional if the connection is made via a port.