Modul ncache.client.enum.TopicPriority

Erweitern Sie den Quellcode
from enum import Enum


class TopicPriority(Enum):
    """
    Specifies the relative priority of topics stored in the Cache.
    """
    LOW = 1
    """
    Messages in topic with this priority level are the most likely to be deleted from the cache as the server frees system memory.
    """
    NORMAL = 2
    """
    Messages in topic with this priority level are likely to be deleted from the cache as the server frees system memory
    only after those topics with Low priority. This is the default priority of the topic.
    """
    HIGH = 3
    """
    Messages in topic with this priority level are less likely to be deleted from the cache as the server frees system
    memory.
    """

Klassen

class TopicPriority (value, names=None, *, module=None, qualname=None, type=None, start=1)

Gibt die relative Priorität der im Cache gespeicherten Themen an.

Erweitern Sie den Quellcode
class TopicPriority(Enum):
    """
    Specifies the relative priority of topics stored in the Cache.
    """
    LOW = 1
    """
    Messages in topic with this priority level are the most likely to be deleted from the cache as the server frees system memory.
    """
    NORMAL = 2
    """
    Messages in topic with this priority level are likely to be deleted from the cache as the server frees system memory
    only after those topics with Low priority. This is the default priority of the topic.
    """
    HIGH = 3
    """
    Messages in topic with this priority level are less likely to be deleted from the cache as the server frees system
    memory.
    """

Vorfahren

  • Aufzählung.Aufzählung

Klassenvariablen

var HIGH

Es ist weniger wahrscheinlich, dass Nachrichten in einem Thema mit dieser Prioritätsstufe aus dem Cache gelöscht werden, da der Server Systemspeicher freigibt.

var LOW

Themenbezogene Nachrichten mit dieser Prioritätsstufe werden am ehesten aus dem Cache gelöscht, wenn der Server Systemspeicher freigibt.

var NORMAL

Nachrichten in Themen mit dieser Prioritätsstufe werden wahrscheinlich aus dem Cache gelöscht, da der Server Systemspeicher erst nach Themen mit niedriger Priorität freigibt. Dies ist die Standardpriorität des Themas.