Builder

public final class Builder extends ConnectionBuilder

The builder for the server.

Functions

Link copied to clipboard
Adds a builder for a BoundedContext to be added the server.
Link copied to clipboard
public Server build()
Creates a new instance of the server.
Link copied to clipboard
public Server.Builder include(BindableService service)
Adds a gRPC service to the built server.
Link copied to clipboard
public Server.Builder setPort(int port)
Does nothing.

Inherited 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.