C# Класс TSystems.RELOAD.Storage.StorageModul

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

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

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
Результат bool

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

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
Результат System.UInt64

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

Returns the resource for a given resource Id
public GetStoreKindData ( string resourceId ) : List
resourceId string A string containing the resourceId
Результат List

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

Removes a Resource at the resourceId parameter
public Remove ( string resourceId ) : void
resourceId string The Resource Id of the Resource to be removed
Результат void

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

Executing this method removes all expired (lifetime <= 0) from this peer
public RemoveExpired ( ) : void
Результат void

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

public StorageModul ( ReloadConfig config ) : System
config ReloadConfig
Результат System

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

public Store ( ResourceId resId, StoreKindData kindData ) : void
resId TSystems.RELOAD.Utils.ResourceId
kindData StoreKindData
Результат void