AdvancedPublisherCacheOptions class
Options for the advanced publisher's sample cache.
The presence of this object on AdvancedPublisherOptions.cache enables
the cache; this object carries only the bound. Splitting the two axes is
deliberate — a single nullable integer had to mean both "no cache" and
"canon decides the bound", and that conflation is what made the value 0
misreadable.
Canon models the same thing as a struct
(ze_advanced_publisher_cache_options_t), of which this binds
max_samples; its congestion_control, priority and is_express are
deliberately not bound.
Constructors
- AdvancedPublisherCacheOptions({int? maxSamples})
-
Creates cache options.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxSamples → int?
-
The number of samples the cache keeps per resource.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited