public class GrpcService extends Object
Constructor and Description |
---|
GrpcService(io.grpc.BindableService bindableService)
Creates a new
GrpcService . |
GrpcService(io.grpc.ServerServiceDefinition serviceDefinition)
Creates a new
GrpcService . |
Modifier and Type | Method and Description |
---|---|
GrpcService |
disableAuthentication()
If called, clients can access this service's methods without authentication.
|
com.google.common.io.Closer |
getCloser()
Gets the closer associated with this service.
|
io.grpc.ServerServiceDefinition |
getServiceDefinition() |
boolean |
isAuthenticated() |
GrpcService |
withCloseable(Closeable closeable)
Add a new closeable resource to this service's closer.
|
public GrpcService(io.grpc.BindableService bindableService)
GrpcService
.bindableService
- gRPC bindable servicepublic GrpcService(io.grpc.ServerServiceDefinition serviceDefinition)
GrpcService
.serviceDefinition
- gRPC service definitionpublic GrpcService disableAuthentication()
GrpcService
instancepublic GrpcService withCloseable(Closeable closeable)
GrpcServer
that hosts
the service.closeable
- the closeable resourceGrpcService
instancepublic com.google.common.io.Closer getCloser()
public boolean isAuthenticated()
true
if this service should be accessed with authenticationpublic io.grpc.ServerServiceDefinition getServiceDefinition()
ServerServiceDefinition
Copyright © 2023. All Rights Reserved.