Package com.mxraven.mail.notify
Record Class RoutingHTTPCall
java.lang.Object
java.lang.Record
com.mxraven.mail.notify.RoutingHTTPCall
- Record Components:
endpoint- endpoint reference the script namedstatus- HTTP response status, or zero when no response was receiveddurationMs- wall-clock duration in millisecondsrequestBytes- request body size in bytesresponseBytes- response body size in bytes, capped by the platformerror- transport failure description, when the call failedcached- whether an identical earlier call in the same transaction answered this one, so the endpoint was called only once
public record RoutingHTTPCall(String endpoint, int status, long durationMs, int requestBytes, int responseBytes, String error, boolean cached)
extends Record
The audit record of one
mx.http call. Response bodies are never
recorded.-
Constructor Summary
ConstructorsConstructorDescriptionRoutingHTTPCall(String endpoint, int status, long durationMs, int requestBytes, int responseBytes, String error, boolean cached) Creates an instance of aRoutingHTTPCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancached()Returns the value of thecachedrecord component.longReturns the value of thedurationMsrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of therequestBytesrecord component.intReturns the value of theresponseBytesrecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RoutingHTTPCall
public RoutingHTTPCall(String endpoint, int status, long durationMs, int requestBytes, int responseBytes, String error, boolean cached) Creates an instance of aRoutingHTTPCallrecord class.- Parameters:
endpoint- the value for theendpointrecord componentstatus- the value for thestatusrecord componentdurationMs- the value for thedurationMsrecord componentrequestBytes- the value for therequestBytesrecord componentresponseBytes- the value for theresponseBytesrecord componenterror- the value for theerrorrecord componentcached- the value for thecachedrecord 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 '=='. -
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
requestBytes
public int requestBytes()Returns the value of therequestBytesrecord component.- Returns:
- the value of the
requestBytesrecord component
-
responseBytes
public int responseBytes()Returns the value of theresponseBytesrecord component.- Returns:
- the value of the
responseBytesrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
cached
public boolean cached()Returns the value of thecachedrecord component.- Returns:
- the value of the
cachedrecord component
-