Class Parcel<TPayload>
Describes a data parcel - a piece of logically-grouped data that gets fetched from/comitted into a distributed backend system. Parcels represent an atomic unit of change, a changeset that gets replicated between failover hosts. Every parcel has a Payload property that stores business data of interest that the parcel contains. This class is not thread-safe. This particular class serves as a very base for distributed data store implementations
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.DataAccess.Distributed
Assembly: NFX.dll
Syntax
[Serializable]
public abstract class Parcel<TPayload> : Parcel, IDisposable, IReplicatable, ICachePolicy, IDistributedStableHashProvider, IShardingPointerProvider where TPayload : class
Type Parameters
Name | Description |
---|---|
TPayload | Type of payload that parcel carries |
Constructors
Parcel()
Used for serialization
Declaration
protected Parcel()
Parcel(TPayload)
This ctor is never public, used with __ctor__injectID
Declaration
protected Parcel(TPayload payload)
Parameters
Type | Name | Description |
---|---|---|
TPayload | payload |
Parcel(GDID, TPayload)
Declaration
protected Parcel(GDID id, TPayload payload)
Parameters
Type | Name | Description |
---|---|---|
GDID | id | |
TPayload | payload |
Parcel(GDID, TPayload, IReplicationVersionInfo)
Declaration
protected Parcel(GDID id, TPayload payload, IReplicationVersionInfo versInfo)
Parameters
Type | Name | Description |
---|---|---|
GDID | id | |
TPayload | payload | |
IReplicationVersionInfo | versInfo |
Properties
Payload
Returns payload of this parcel. May be null for deleted parcels (VersionDeleted)
Declaration
public TPayload Payload { get; }
Property Value
Type | Description |
---|---|
TPayload |
Implements
System.IDisposable