C# Class Brunet.Services.Dht.Entry

An entry contains the data for a key:value pair such as the key, value, create time, and end time. The data is stored in a hashtable, which allows this to be casted to and from a hash table.
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Свойство Type Description
_ht System.Collections.Hashtable

Méthodes publiques

Méthode Description
Entry ( Hashtable ht ) : System

Uses the hashtable as the data store for the dht

Entry ( MemBlock key, MemBlock data, System.DateTime create_time, System.DateTime end_time ) : System

Creates a new Entry given the key, data, create time, and end time

Equals ( Object ent ) : bool

Compares the hashcodes for two Entrys.

GetHashCode ( ) : int

Gets the hashcode for an Entry object computed by the Key.GetHashCode() xor Value.GetHashCode().

Method Details

Entry() public méthode

Uses the hashtable as the data store for the dht
public Entry ( Hashtable ht ) : System
ht System.Collections.Hashtable A hashtable containing key, value, create_time, and end_time strings as keys
Résultat System

Entry() public méthode

Creates a new Entry given the key, data, create time, and end time
public Entry ( MemBlock key, MemBlock data, System.DateTime create_time, System.DateTime end_time ) : System
key Brunet.Util.MemBlock The dht key used for indexing this data.
data Brunet.Util.MemBlock A single value stored at this key.
create_time System.DateTime The initial creation time for this key:value pair.
end_time System.DateTime The time the lease expires for this key:value pair.
Résultat System

Equals() public méthode

Compares the hashcodes for two Entrys.
public Equals ( Object ent ) : bool
ent Object
Résultat bool

GetHashCode() public méthode

Gets the hashcode for an Entry object computed by the Key.GetHashCode() xor Value.GetHashCode().
public GetHashCode ( ) : int
Résultat int

Property Details

_ht protected_oe property

The hashtable where Entry data is stored.
protected Hashtable,System.Collections _ht
Résultat System.Collections.Hashtable