Class MessageCacheRecord
- java.lang.Object
-
- com.smartgridready.communicator.messaging.impl.MessageCacheRecord
-
public class MessageCacheRecord extends java.lang.ObjectImplements a message cache record.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.InstantgetLastAccess()Gets the access timestamp.ValuegetValue()Gets the cached value.static MessageCacheRecordof(Value value)Creates a new instance from a value.
-
-
-
Method Detail
-
of
public static MessageCacheRecord of(Value value)
Creates a new instance from a value. Sets the time stamp to the current date/time.- Parameters:
value- the value- Returns:
- a message cache record.
-
getValue
public Value getValue()
Gets the cached value.- Returns:
- a value
-
getLastAccess
public java.time.Instant getLastAccess()
Gets the access timestamp.- Returns:
- an instant
-
-