Documentation ¶
Index ¶
- type AmqpQos
- func (qos *AmqpQos) Copy() *AmqpQos
- func (qos *AmqpQos) Dec(count uint16, size uint32)
- func (qos *AmqpQos) Inc(count uint16, size uint32) bool
- func (qos *AmqpQos) IsActive() bool
- func (qos *AmqpQos) PrefetchCount() uint16
- func (qos *AmqpQos) PrefetchSize() uint32
- func (qos *AmqpQos) Release()
- func (qos *AmqpQos) Update(prefetchCount uint16, prefetchSize uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmqpQos ¶
AmqpQos represents qos system
func NewAmqpQos ¶
NewAmqpQos returns new instance of AmqpQos
func (*AmqpQos) Inc ¶
Inc increment current count and size Returns true if increment success Returns false if after increment size or count will be more than prefetchCount or prefetchSize
func (*AmqpQos) IsActive ¶
IsActive check is qos rules are active both prefetchSize and prefetchCount must be 0
func (*AmqpQos) PrefetchCount ¶
PrefetchCount returns prefetchCount
func (*AmqpQos) PrefetchSize ¶
PrefetchSize returns prefetchSize
Click to show internal directories.
Click to hide internal directories.