Record Class GrpcClientFactory.GrpcClientRegistrationSpec
java.lang.Object
java.lang.Record
org.springframework.grpc.client.GrpcClientFactory.GrpcClientRegistrationSpec
- Enclosing class:
GrpcClientFactory
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcClientRegistrationSpec(String prefix, @Nullable Class<? extends StubFactory<?>> factory, String target, Class<?>[] types, String[] packages) Creates an instance of aGrpcClientRegistrationSpecrecord class.GrpcClientRegistrationSpec(String target, Class<?>[] types) GrpcClientRegistrationSpec(String prefix, String target, Class<?>[] types) -
Method Summary
Modifier and TypeMethodDescriptiondefaults()final booleanIndicates whether some other object is "equal to" this one.@Nullable Class<? extends StubFactory<?>> factory()Returns the value of thefactoryrecord component.factory(@Nullable Class<? extends StubFactory<?>> factory) final inthashCode()Returns a hash code value for this object.packageClasses(Class<?>... packageClasses) String[]packages()Returns the value of thepackagesrecord component.prefix()Returns the value of theprefixrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.Class<?>[]types()Returns the value of thetypesrecord component.
-
Constructor Details
-
GrpcClientRegistrationSpec
-
GrpcClientRegistrationSpec
-
GrpcClientRegistrationSpec
public GrpcClientRegistrationSpec(String prefix, @Nullable Class<? extends StubFactory<?>> factory, String target, Class<?>[] types, String[] packages) Creates an instance of aGrpcClientRegistrationSpecrecord class.- Parameters:
prefix- the value for theprefixrecord componentfactory- the value for thefactoryrecord componenttarget- the value for thetargetrecord componenttypes- the value for thetypesrecord componentpackages- the value for thepackagesrecord component
-
-
Method Details
-
defaults
-
of
-
factory
public GrpcClientFactory.GrpcClientRegistrationSpec factory(@Nullable Class<? extends StubFactory<?>> factory) -
types
-
prefix
-
packages
-
packageClasses
-
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). -
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
factory
Returns the value of thefactoryrecord component.- Returns:
- the value of the
factoryrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-
packages
Returns the value of thepackagesrecord component.- Returns:
- the value of the
packagesrecord component
-