C# Class TSystems.RELOAD.Storage.StorageModul

Show file Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Methods

Method Description
Fetch ( ResourceId resId, StoredDataSpecifier specifier, FetchKindResponse &fetchKindResponse ) : bool

Returns FetchKindResponse structs for a given ResourceId and Specifier

GetGeneration ( ResourceId id, UInt32 kindId ) : System.UInt64

Returns the current generation counter for a given Resource/Kind pair

GetStoreKindData ( string resourceId ) : List

Returns the resource for a given resource Id

Remove ( string resourceId ) : void

Removes a Resource at the resourceId parameter

RemoveExpired ( ) : void

Executing this method removes all expired (lifetime <= 0) from this peer

StorageModul ( ReloadConfig config ) : System
Store ( ResourceId resId, StoreKindData kindData ) : void

Method Details

Fetch() public method

Returns FetchKindResponse structs for a given ResourceId and Specifier
public Fetch ( ResourceId resId, StoredDataSpecifier specifier, FetchKindResponse &fetchKindResponse ) : bool
resId TSystems.RELOAD.Utils.ResourceId The ResourceId
specifier StoredDataSpecifier The StoredDataSpecifier
fetchKindResponse TSystems.RELOAD.Transport.FetchKindResponse The Fetch result als FetchKindResonse
return bool

GetGeneration() public method

Returns the current generation counter for a given Resource/Kind pair
public GetGeneration ( ResourceId id, UInt32 kindId ) : System.UInt64
id TSystems.RELOAD.Utils.ResourceId The resourceId
kindId System.UInt32
return System.UInt64

GetStoreKindData() public method

Returns the resource for a given resource Id
public GetStoreKindData ( string resourceId ) : List
resourceId string A string containing the resourceId
return List

Remove() public method

Removes a Resource at the resourceId parameter
public Remove ( string resourceId ) : void
resourceId string The Resource Id of the Resource to be removed
return void

RemoveExpired() public method

Executing this method removes all expired (lifetime <= 0) from this peer
public RemoveExpired ( ) : void
return void

StorageModul() public method

public StorageModul ( ReloadConfig config ) : System
config ReloadConfig
return System

Store() public method

public Store ( ResourceId resId, StoreKindData kindData ) : void
resId TSystems.RELOAD.Utils.ResourceId
kindData StoreKindData
return void