Record Class StreamCapturePolicy
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.StreamCapturePolicy
- Record Components:
maxBytes- maximum captured bytesredactSensitivePatterns- whether built-in secret patterns are redactedadditionalRedactionTokens- extra literal tokens to redact
-
Constructor Summary
ConstructorsConstructorDescriptionStreamCapturePolicy(int maxBytes, boolean redactSensitivePatterns, List<String> additionalRedactionTokens) Creates a validated capture policy. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalRedactionTokensrecord component.static StreamCapturePolicydefaults()Creates a default capture policy.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxBytes()Returns the value of themaxBytesrecord component.booleanReturns the value of theredactSensitivePatternsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamCapturePolicy
-
-
Method Details
-
defaults
Creates a default capture policy.- Returns:
- default policy
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
maxBytes
-
redactSensitivePatterns
public boolean redactSensitivePatterns()Returns the value of theredactSensitivePatternsrecord component.- Returns:
- the value of the
redactSensitivePatternsrecord component
-
additionalRedactionTokens
Returns the value of theadditionalRedactionTokensrecord component.- Returns:
- the value of the
additionalRedactionTokensrecord component
-