Record Class CacheEntryEntity
java.lang.Object
java.lang.Record
io.micronaut.cache.oracle.persistence.CacheEntryEntity
- Record Components:
id- The composite cache entry identifierkeyPayload- The serialized cache key payloadvaluePayload- The serialized cache value payloadvalueWeight- The stored value weightcreatedAt- The row creation timelastAccessAt- The last access timeexpiresAt- The expiry time
@MappedEntity("${micronaut.oracle.cache.prefix:MN}_CACHE_ENTRY")
public record CacheEntryEntity(CacheEntryId id, byte[] keyPayload, byte[] valuePayload, Long valueWeight, Instant createdAt, Instant lastAccessAt, Instant expiresAt)
extends Record
Cache entry row persisted in Oracle.
- Since:
- 6.2.0
- Author:
- Davide Cocco
-
Constructor Summary
ConstructorsConstructorDescriptionCacheEntryEntity(CacheEntryId id, byte[] keyPayload, byte[] valuePayload, Long valueWeight, Instant createdAt, Instant lastAccessAt, Instant expiresAt) Creates an instance of aCacheEntryEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.byte[]Returns the value of thekeyPayloadrecord component.Returns the value of thelastAccessAtrecord component.final StringtoString()Returns a string representation of this record class.byte[]Returns the value of thevaluePayloadrecord component.Returns the value of thevalueWeightrecord component.
-
Constructor Details
-
CacheEntryEntity
public CacheEntryEntity(CacheEntryId id, byte[] keyPayload, byte[] valuePayload, Long valueWeight, Instant createdAt, Instant lastAccessAt, Instant expiresAt) Creates an instance of aCacheEntryEntityrecord class.- Parameters:
id- the value for theidrecord componentkeyPayload- the value for thekeyPayloadrecord componentvaluePayload- the value for thevaluePayloadrecord componentvalueWeight- the value for thevalueWeightrecord componentcreatedAt- the value for thecreatedAtrecord componentlastAccessAt- the value for thelastAccessAtrecord componentexpiresAt- the value for theexpiresAtrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
keyPayload
@MappedProperty("KEY_PAYLOAD") public byte[] keyPayload()Returns the value of thekeyPayloadrecord component.- Returns:
- the value of the
keyPayloadrecord component
-
valuePayload
@MappedProperty("VALUE_PAYLOAD") public byte[] valuePayload()Returns the value of thevaluePayloadrecord component.- Returns:
- the value of the
valuePayloadrecord component
-
valueWeight
Returns the value of thevalueWeightrecord component.- Returns:
- the value of the
valueWeightrecord component
-
createdAt
-
lastAccessAt
Returns the value of thelastAccessAtrecord component.- Returns:
- the value of the
lastAccessAtrecord component
-
expiresAt
-