Record Class GrpcServiceRegistry.RegisteredMethod
java.lang.Object
java.lang.Record
io.micronaut.protobuf.json.registry.GrpcServiceRegistry.RegisteredMethod
- Record Components:
executableMethod- The Micronaut executable method.methodDescriptor- The gRPC method descriptor.
- Enclosing class:
GrpcServiceRegistry
public static record GrpcServiceRegistry.RegisteredMethod(io.micronaut.inject.ExecutableMethod<?,?> executableMethod, io.grpc.MethodDescriptor<?,?> methodDescriptor)
extends Record
Registered gRPC method metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredMethod(io.micronaut.inject.ExecutableMethod<?, ?> executableMethod, io.grpc.MethodDescriptor<?, ?> methodDescriptor) Creates an instance of aRegisteredMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.io.micronaut.inject.ExecutableMethod<?, ?> Returns the value of theexecutableMethodrecord component.final inthashCode()Returns a hash code value for this object.io.grpc.MethodDescriptor<?, ?> Returns the value of themethodDescriptorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegisteredMethod
public RegisteredMethod(io.micronaut.inject.ExecutableMethod<?, ?> executableMethod, io.grpc.MethodDescriptor<?, ?> methodDescriptor) Creates an instance of aRegisteredMethodrecord class.- Parameters:
executableMethod- the value for theexecutableMethodrecord componentmethodDescriptor- the value for themethodDescriptorrecord 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). -
executableMethod
public io.micronaut.inject.ExecutableMethod<?,?> executableMethod()Returns the value of theexecutableMethodrecord component.- Returns:
- the value of the
executableMethodrecord component
-
methodDescriptor
public io.grpc.MethodDescriptor<?,?> methodDescriptor()Returns the value of themethodDescriptorrecord component.- Returns:
- the value of the
methodDescriptorrecord component
-