server
1.9.0
jvm
server
/
io.spine.server
/
Server
/
Builder
Builder
public
final
class
Builder
extends
ConnectionBuilder
The builder for the server.
Members
Functions
add
Link copied to clipboard
public
Server.Builder
add
(
BoundedContextBuilder
context
)
Adds a builder for a
BoundedContext
to be added the server.
build
Link copied to clipboard
public
Server
build
(
)
Creates a new instance of the server.
include
Link copied to clipboard
public
Server.Builder
include
(
BindableService service
)
Adds a gRPC service to the built server.
set
Port
Link copied to clipboard
@
Deprecated
(
)
public
Server.Builder
setPort
(
int port
)
Does nothing.
Inherited functions
port
Link copied to clipboard
public
final
Optional
<
Integer
>
port
(
)
Obtains the port of the connection, or empty
Optional
for in-process connection.
server
Name
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.