public abstract class ConnectionBuilder
extends java.lang.Object
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.
InProcessChannelBuilder
,
InProcessServerBuilder
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Integer> |
port()
Obtains the port of the connection, or empty
Optional for in-process connection. |
java.util.Optional<java.lang.String> |
serverName()
Obtains the name of the in-process connection, or empty
Optional if the connection
is made via a port. |
public final java.util.Optional<java.lang.Integer> port()
Optional
for in-process connection.ConnectionBuilder.serverName()
public final java.util.Optional<java.lang.String> serverName()
Optional
if the connection
is made via a port.ConnectionBuilder.port()