Documentation ¶
Index ¶
- type BlockStrategy
- func NewXCacheChannelBlockStrategy() BlockStrategy
- func NewXCondBlockStrategy() BlockStrategy
- func NewXCpuNoOpLoopBlockStrategy(cycles uint32) BlockStrategy
- func NewXGoSchedBlockStrategy() BlockStrategy
- func NewXOsYieldBlockStrategy() BlockStrategy
- func NewXSleepBlockStrategy(sleepTime time.Duration) BlockStrategy
- type Disruptor
- type EventHandler
- type Producer
- type Publisher
- type Sequencer
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStrategy ¶
type BlockStrategy interface { WaitFor(eqFn func() bool) Done() }
func NewXCacheChannelBlockStrategy ¶
func NewXCacheChannelBlockStrategy() BlockStrategy
func NewXCondBlockStrategy ¶
func NewXCondBlockStrategy() BlockStrategy
func NewXCpuNoOpLoopBlockStrategy ¶
func NewXCpuNoOpLoopBlockStrategy(cycles uint32) BlockStrategy
func NewXGoSchedBlockStrategy ¶
func NewXGoSchedBlockStrategy() BlockStrategy
func NewXOsYieldBlockStrategy ¶
func NewXOsYieldBlockStrategy() BlockStrategy
func NewXSleepBlockStrategy ¶
func NewXSleepBlockStrategy(sleepTime time.Duration) BlockStrategy
type Disruptor ¶
type Disruptor[T any] interface { Publisher[T] RegisterSubscriber(sub Subscriber[T]) error // contains filtered or unexported methods }
func NewXSinglePipelineDisruptor ¶
func NewXSinglePipelineDisruptor[T any]( capacity uint64, strategy BlockStrategy, handler EventHandler[T], ) Disruptor[T]
type EventHandler ¶
type Sequencer ¶
type Sequencer interface { Capacity() uint64 GetReadCursor() queue.RingBufferCursor GetWriteCursor() queue.RingBufferCursor }
func NewXSequencer ¶
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.