Package org.saidone.unrest.mcp
Record Class AlfrescoProperties.Grpc
java.lang.Object
java.lang.Record
org.saidone.unrest.mcp.AlfrescoProperties.Grpc
- Record Components:
host- gRPC hostport- gRPC porttrustCertificate- PEM CA certificate used to verify the server; empty means plaintext (the Alfresco module only accepts plaintext on loopback addresses)- TLS host name to verify instead ofhost; empty to usehostdeadline- per-call deadlinecontentChannels- reusable content channels, 1..64 including the shared primary channel
- Enclosing class:
AlfrescoProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorityOverriderecord component.intReturns the value of thecontentChannelsrecord component.deadline()Returns the value of thedeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustCertificaterecord component.
-
Constructor Details
-
Grpc
public Grpc(@DefaultValue("localhost") String host, @DefaultValue("9090") int port, @DefaultValue("") String trustCertificate, @DefaultValue("") String authorityOverride, @DefaultValue("30s") Duration deadline, @DefaultValue("1") int contentChannels) Creates an instance of aGrpcrecord class.- Parameters:
host- the value for thehostrecord componentport- the value for theportrecord componenttrustCertificate- the value for thetrustCertificaterecord componentauthorityOverride- the value for theauthorityOverriderecord componentdeadline- the value for thedeadlinerecord componentcontentChannels- the value for thecontentChannelsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
trustCertificate
Returns the value of thetrustCertificaterecord component.- Returns:
- the value of the
trustCertificaterecord component
-
authorityOverride
Returns the value of theauthorityOverriderecord component.- Returns:
- the value of the
authorityOverriderecord component
-
deadline
Returns the value of thedeadlinerecord component.- Returns:
- the value of the
deadlinerecord component
-
contentChannels
public int contentChannels()Returns the value of thecontentChannelsrecord component.- Returns:
- the value of the
contentChannelsrecord component
-