Represents a request identifier composed of a string value that adheres to a specific format. This class is designed to parse and extract meaningful components from the identifier. It implements the CharSequence interface for compatibility with string manipulation.
<aside> <img src="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" alt="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" width="40px" />
TABLE OF CONTENT
</aside>
| Package | ‣ dev.tommasop1804.springutils.request |
|---|---|
| Since version | 2.1.0 |
| Implemented interface | ‣ CharSequence |
| Value class | :ij-kt-class: String |
value| Since version | 2.1.0 |
|---|---|
| Type | :ij-kt-class: String |
The string representation of the request identifier.
applicationAcronym| Since version | 2.1.0 |
|---|---|
| Type | :ij-kt-class: String |
| Dinamically computed | ✔️ |
Extracts the application name from the value string of the enclosing RequestId.
The value is assumed to be structured such that sections are delimited by a colon (:). This property retrieves the second segment (index 1) after splitting the value by the colon delimiter.
instant| Since version | 2.1.0 |
|---|---|
| Type | ‣ Instant |
| Dinamically computed | ✔️ |
Retrieves the Instant representation of the timestamp from the underlying ULID.
The Instant is extracted from the ULID, which encodes the timestamp part of the identifier. This allows for operations or comparisons based on the creation time of the ULID.
length