Package org.restheart.configuration
Record Class ProxiedResource
java.lang.Object
java.lang.Record
org.restheart.configuration.ProxiedResource
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProxiedResource(String name, String location, List<String> proxyPass, boolean rewriteHostHeader, int connectionPerThread, int maxQueueSize, int softMaxConnectionsPerThread, int connectionsTTL, int problemServerRetry) Creates an instance of aProxiedResourcerecord class.ProxiedResource(Map<String, Object> conf, boolean silent) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ProxiedResource> intReturns the value of theconnectionPerThreadrecord component.intReturns the value of theconnectionsTTLrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.intReturns the value of themaxQueueSizerecord component.name()Returns the value of thenamerecord component.intReturns the value of theproblemServerRetryrecord component.Returns the value of theproxyPassrecord component.booleanReturns the value of therewriteHostHeaderrecord component.intReturns the value of thesoftMaxConnectionsPerThreadrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
PROXIED_RESOURCES_KEY
- See Also:
-
PROXY_NAME
- See Also:
-
PROXY_LOCATION_KEY
- See Also:
-
PROXY_PASS_KEY
- See Also:
-
PROXY_REWRITE_HOST_HEADER
- See Also:
-
PROXY_CONNECTIONS_PER_THREAD
- See Also:
-
PROXY_MAX_QUEUE_SIZE
- See Also:
-
PROXY_SOFT_MAX_CONNECTIONS_PER_THREAD
- See Also:
-
PROXY_TTL
- See Also:
-
PROXY_PROBLEM_SERVER_RETRY
- See Also:
-
-
Constructor Details
-
ProxiedResource
-
ProxiedResource
public ProxiedResource(String name, String location, List<String> proxyPass, boolean rewriteHostHeader, int connectionPerThread, int maxQueueSize, int softMaxConnectionsPerThread, int connectionsTTL, int problemServerRetry) Creates an instance of aProxiedResourcerecord class.- Parameters:
name- the value for thenamerecord componentlocation- the value for thelocationrecord componentproxyPass- the value for theproxyPassrecord componentrewriteHostHeader- the value for therewriteHostHeaderrecord componentconnectionPerThread- the value for theconnectionPerThreadrecord componentmaxQueueSize- the value for themaxQueueSizerecord componentsoftMaxConnectionsPerThread- the value for thesoftMaxConnectionsPerThreadrecord componentconnectionsTTL- the value for theconnectionsTTLrecord componentproblemServerRetry- the value for theproblemServerRetryrecord component
-
-
Method Details
-
build
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
proxyPass
Returns the value of theproxyPassrecord component.- Returns:
- the value of the
proxyPassrecord component
-
rewriteHostHeader
public boolean rewriteHostHeader()Returns the value of therewriteHostHeaderrecord component.- Returns:
- the value of the
rewriteHostHeaderrecord component
-
connectionPerThread
public int connectionPerThread()Returns the value of theconnectionPerThreadrecord component.- Returns:
- the value of the
connectionPerThreadrecord component
-
maxQueueSize
public int maxQueueSize()Returns the value of themaxQueueSizerecord component.- Returns:
- the value of the
maxQueueSizerecord component
-
softMaxConnectionsPerThread
public int softMaxConnectionsPerThread()Returns the value of thesoftMaxConnectionsPerThreadrecord component.- Returns:
- the value of the
softMaxConnectionsPerThreadrecord component
-
connectionsTTL
public int connectionsTTL()Returns the value of theconnectionsTTLrecord component.- Returns:
- the value of the
connectionsTTLrecord component
-
problemServerRetry
public int problemServerRetry()Returns the value of theproblemServerRetryrecord component.- Returns:
- the value of the
problemServerRetryrecord component
-