C# Класс OpenSim.Region.CoreModules.Asset.CenomeMemoryAssetCache

Наследование: IImprovedAssetCache, ISharedRegionModule
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DefaultExpirationTime System.TimeSpan

Открытые методы

Метод Описание
AddRegion ( Scene scene ) : void

New region is being added to server.

Cache ( OpenSim.Framework.AssetBase asset ) : void

Cache asset.

Clear ( ) : void

Clear asset cache.

Close ( ) : void

Close region module.

Expire ( string id ) : void

Expire (remove) asset stored to cache.

Get ( string id ) : OpenSim.Framework.AssetBase

Get asset stored

Caller should always check that is return value . Cache doesn't guarantee in any situation that asset is stored to it.

Initialise ( IConfigSource source ) : void

Initialize region module.

PostInitialise ( ) : void

Initialization post handling.

Modules can use this to initialize connection with other modules.

RegionLoaded ( Scene scene ) : void

Region has been loaded.

This is needed for all module types. Modules will register Interfaces with scene in AddScene, and will also need a means to access interfaces registered by other modules. Without this extra method, a module attempting to use another modules' interface would be successful only depending on load order, which can't be depended upon, or modules would need to resort to ugly kludges to attempt to request interfaces when needed and unnecessary caching logic repeated in all modules. The extra function stub is just that much cleaner.

RemoveRegion ( Scene scene ) : void

Region is being removed.

Защищенные методы

Метод Описание
Initialize ( long maximalSize, int maximalCount, System.TimeSpan expirationTime ) : void

Initialize asset cache module, with custom parameters.

Описание методов

AddRegion() публичный Метод

New region is being added to server.
public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene /// Region's scene. ///
Результат void

Cache() публичный Метод

Cache asset.
public Cache ( OpenSim.Framework.AssetBase asset ) : void
asset OpenSim.Framework.AssetBase /// The asset that is being cached. ///
Результат void

Clear() публичный Метод

Clear asset cache.
public Clear ( ) : void
Результат void

Close() публичный Метод

Close region module.
public Close ( ) : void
Результат void

Expire() публичный Метод

Expire (remove) asset stored to cache.
public Expire ( string id ) : void
id string /// The expired asset's id. ///
Результат void

Get() публичный Метод

Get asset stored

Caller should always check that is return value . Cache doesn't guarantee in any situation that asset is stored to it.

public Get ( string id ) : OpenSim.Framework.AssetBase
id string /// The asset's id. ///
Результат OpenSim.Framework.AssetBase

Initialise() публичный Метод

Initialize region module.
public Initialise ( IConfigSource source ) : void
source IConfigSource /// Configuration source. ///
Результат void

Initialize() защищенный Метод

Initialize asset cache module, with custom parameters.
protected Initialize ( long maximalSize, int maximalCount, System.TimeSpan expirationTime ) : void
maximalSize long /// Cache's maximal size in bytes. ///
maximalCount int /// Cache's maximal count of assets. ///
expirationTime System.TimeSpan /// Asset's expiration time. ///
Результат void

PostInitialise() публичный Метод

Initialization post handling.

Modules can use this to initialize connection with other modules.

public PostInitialise ( ) : void
Результат void

RegionLoaded() публичный Метод

Region has been loaded.

This is needed for all module types. Modules will register Interfaces with scene in AddScene, and will also need a means to access interfaces registered by other modules. Without this extra method, a module attempting to use another modules' interface would be successful only depending on load order, which can't be depended upon, or modules would need to resort to ugly kludges to attempt to request interfaces when needed and unnecessary caching logic repeated in all modules. The extra function stub is just that much cleaner.

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene /// Region's scene. ///
Результат void

RemoveRegion() публичный Метод

Region is being removed.
public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene /// Region scene that is being removed. ///
Результат void

Описание свойств

DefaultExpirationTime публичное статическое свойство

Asset's default expiration time in the cache.
public static TimeSpan,System DefaultExpirationTime
Результат System.TimeSpan