Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
X::Message::Context
Inherits
Reference
/
Object
Constructors
new
(sender :
UInt64
, value :
Value::Context
, needs_ack :
Bool
= false, ttl :
Time::Span
|
Nil
= nil)
Source
Instance methods
expired?
Returns true if the message has a TTL and has expired
Source
id
Source
id=
(id :
UInt64
)
Source
needs_ack
Source
needs_ack=
(needs_ack :
Bool
)
Source
sender
Source
sender=
(sender :
UInt64
)
Source
timestamp
Source
timestamp=
(timestamp :
Time
)
Source
ttl
Source
ttl=
(ttl :
Time::Span
|
Nil
)
Source
value
Source
value=
(value :
Value::Context
)
Source