struct LavinMQ::SegmentPosition
- LavinMQ::SegmentPosition
- Struct
- Value
- Object
Included Modules
- Comparable(LavinMQ::SegmentPosition)
Defined in:
lavinmq/segment_position.crConstant Summary
-
BYTESIZE =
30
Constructors
Class Method Summary
- .from_i64(i : Int64)
- .from_io(io : IO, format = IO::ByteFormat::SystemEndian)
- .make(segment, position, msg)
- .parse(s)
- .zero
Instance Method Summary
- #<=>(other : self)
- #==(other : self)
- #bytesize : UInt32
- #end_position
- #expiration_ts : Int64
- #flags : SPFlags
-
#hash(hasher)
See
Object#hash(hasher)
- #position : UInt32
- #priority : UInt8
-
#segment : UInt32
NOTE order is important here
- #timestamp : Int64
- #to_i64
- #to_io(io : IO, format)
-
#to_s(io : IO)
Same as
#inspect(io)
. - #ttl : Int64
- #ttl? : UInt32 | Nil
- #zero?
Constructor Detail
def self.new(segment : UInt32, position : UInt32, bytesize : UInt32 = 0_u32, timestamp : Int64 = 0_i64, ttl : Int64 = 0_u32, priority : UInt8 = 0_u8, flags : LavinMQ::SegmentPosition::SPFlags = SPFlags::None)
#