C# 클래스 OpenSim.Region.CoreModules.Asset.CenomeMemoryAssetCache

상속: IImprovedAssetCache, ISharedRegionModule
파일 보기 프로젝트 열기: openmetaversefoundation/fortis-opensim

공개 프로퍼티들

프로퍼티 타입 설명
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