CacheInfo Class

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

public class CacheInfo

A cache info object which notifies Teams how long an object should be cached for.

Constructor Summary

Constructor Description
CacheInfo()

Method Summary

Modifier and Type Method and Description
java.lang.Integer getCacheDuration()

Gets cache duration.

java.lang.String getCacheType()

Gets cache type.

void setCacheDuration(Integer withCacheDuration)

Sets cache duration.

void setCacheType(String withCacheType)

Sets cache type.

Methods inherited from 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

Constructor Details

CacheInfo

public CacheInfo()

Method Details

getCacheDuration

public Integer getCacheDuration()

Gets cache duration.

Returns:

The time in seconds for which the cached object should remain in the cache.

getCacheType

public String getCacheType()

Gets cache type.

Returns:

The type of cache for this object.

setCacheDuration

public void setCacheDuration(Integer withCacheDuration)

Sets cache duration.

Parameters:

withCacheDuration - The time in seconds for which the cached object should remain in the cache.

setCacheType

public void setCacheType(String withCacheType)

Sets cache type.

Parameters:

withCacheType - The type of cache for this object.

Applies to