//clika-runtime/io.clika.runtime/CapacityPolicy
CapacityPolicy
[common]
enum CapacityPolicy : Enum<CapacityPolicy>
How admission accounts for the model's capacity beyond the session cap: SLOT_CAP admits up to the session ceiling and never reads the model's capacity; NO_EVICT admits a request only while the free capacity covers every active session's remaining need plus this one's whole need; PREEMPT_LAST admits while the free capacity covers the next step and lets the model set a session aside when it runs short, to re-admit it later.
Entries
| SLOT_CAP | [common] SLOT_CAP |
| NO_EVICT | [common] NO_EVICT |
| PREEMPT_LAST | [common] PREEMPT_LAST |
Properties
| Name | Summary |
|---|---|
| code | [common] val code: Int |
| name | [common] val name: String |
| ordinal | [common] val ordinal: Int |
Functions
| Name | Summary |
|---|---|
| valueOf | [common] fun valueOf(value: String): CapacityPolicy Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
| values | [common] fun values(): Array<CapacityPolicy> Returns an array containing the constants of this enum type, in the order they're declared. |