INNER CODE UNIT · Go
WithAcquireCount
alibaba/sentinel-golang · api/api.go:76
func WithAcquireCount(acquireCount uint32) EntryOption {
return func(opts *EntryOptions) {
opts.batchCount = acquireCount
}
}
// WithBatchCount sets the resource entry with the given batch count (by default 1).
func WithBatchCount(batchCount uint32) EntryOption {
return func(opts *EntryOptions) {
opts.batchCount = batchCount
}
}
// WithFlag sets the resource entry with the given additional flag.
func WithFlag(flag int32) EntryOption {
return func(opts *EntryOptions) {
opts.flag = flag
}