CacheInfo Classe

  • java.lang.Object
    • com.microsoft.bot.schema.teams.CacheInfo

public class CacheInfo

Oggetto informazioni della cache che notifica a Teams per quanto tempo deve essere memorizzato nella cache un oggetto.

Riepilogo dei costruttori

Costruttore Descrizione
CacheInfo()

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
java.lang.Integer getCacheDuration()

Ottiene la durata della cache.

java.lang.String getCacheType()

Ottiene il tipo di cache.

void setCacheDuration(Integer withCacheDuration)

Imposta la durata della cache.

void setCacheType(String withCacheType)

Imposta il tipo di cache.

Metodi ereditati da java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Dettagli costruttore

CacheInfo

public CacheInfo()

Dettagli metodo

getCacheDuration

public Integer getCacheDuration()

Ottiene la durata della cache.

Restituisce:

Tempo in secondi per il quale l'oggetto memorizzato nella cache deve rimanere nella cache.

getCacheType

public String getCacheType()

Ottiene il tipo di cache.

Restituisce:

Tipo di cache per questo oggetto.

setCacheDuration

public void setCacheDuration(Integer withCacheDuration)

Imposta la durata della cache.

Parametri:

withCacheDuration - Tempo in secondi per il quale l'oggetto memorizzato nella cache deve rimanere nella cache.

setCacheType

public void setCacheType(String withCacheType)

Imposta il tipo di cache.

Parametri:

withCacheType - Tipo di cache per questo oggetto.

Si applica a