C# Class TSystems.RELOAD.Storage.StorageModul

Afficher le fichier Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

GetGeneration() public méthode

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
Résultat System.UInt64

GetStoreKindData() public méthode

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

Remove() public méthode

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

RemoveExpired() public méthode

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

StorageModul() public méthode

public StorageModul ( ReloadConfig config ) : System
config ReloadConfig
Résultat System

Store() public méthode

public Store ( ResourceId resId, StoreKindData kindData ) : void
resId TSystems.RELOAD.Utils.ResourceId
kindData StoreKindData
Résultat void