Record Class GrpcServiceSpec
java.lang.Object
java.lang.Record
org.springframework.grpc.server.service.GrpcServiceSpec
- Record Components:
service- the bindable serviceserviceInfo- optional additional information about the service (e.g. interceptors)
public record GrpcServiceSpec(io.grpc.BindableService service, @Nullable GrpcServiceInfo serviceInfo)
extends Record
Encapsulates enough information to construct an actual
ServerServiceDefinition.- Author:
- Chris Bono
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcServiceSpec(io.grpc.BindableService service, @Nullable GrpcServiceInfo serviceInfo) Creates an instance of aGrpcServiceSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.grpc.BindableServiceservice()Returns the value of theservicerecord component.@Nullable GrpcServiceInfoReturns the value of theserviceInforecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GrpcServiceSpec
Creates an instance of aGrpcServiceSpecrecord class.- Parameters:
service- the value for theservicerecord componentserviceInfo- the value for theserviceInforecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
service
-
serviceInfo
Returns the value of theserviceInforecord component.- Returns:
- the value of the
serviceInforecord component
-