Documentation
¶
Index ¶
- type EventId
- func (id *EventId) BatchIdx() int32
- func (id *EventId) EntryID() int64
- func (id *EventId) Equal(other *EventId) (bool, error)
- func (id *EventId) Greater(other *EventId) (bool, error)
- func (id *EventId) GreaterEqual(other *EventId) (bool, error)
- func (id *EventId) LedgerID() int64
- func (id *EventId) MessageId() pulsar.MessageID
- func (id *EventId) PartitionIdx() int32
- func (id *EventId) SequenceId() int32
- func (id *EventId) Serialize() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventId ¶
type EventId struct {
// contains filtered or unexported fields
}
EventId identifies a particular event within an event sequence. Because event sequences and Pulsar messages map one-to-one, the event sequence is identified by a Pulsar message id. The specific event within that sequence is identified by the index of the event within the sequence.
This type satisfies the pulsar.MessageID interface.
func (*EventId) Greater ¶
Greater returns true if id occurred after other, or an error if the message ids are not comparable (i.e., if they are from different partitions).
func (*EventId) PartitionIdx ¶
func (*EventId) SequenceId ¶
Click to show internal directories.
Click to hide internal directories.