Interface IStreamMetadata
Represents metadata used in storing stream data in a store.
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public interface IStreamMetadata
Properties
View SourceAverageMessageLatencyMs
Gets the average latency (milliseconds) of messages in the stream.
Declaration
double AverageMessageLatencyMs { get; }
Property Value
Type | Description |
---|---|
System. |
AverageMessageSize
Gets the average size (bytes) of messages in the stream.
Declaration
double AverageMessageSize { get; }
Property Value
Type | Description |
---|---|
System. |
ClosedTime
Gets the time when the stream was closed.
Declaration
DateTime ClosedTime { get; }
Property Value
Type | Description |
---|---|
Date |
FirstMessageCreationTime
Gets the first creation time of a message in the stream.
Declaration
DateTime FirstMessageCreationTime { get; }
Property Value
Type | Description |
---|---|
Date |
See Also
View SourceFirstMessageOriginatingTime
Gets the first originating time of a message in the stream.
Declaration
DateTime FirstMessageOriginatingTime { get; }
Property Value
Type | Description |
---|---|
Date |
See Also
View SourceId
Gets the id of the stream the metadata represents.
Declaration
int Id { get; }
Property Value
Type | Description |
---|---|
System. |
IsClosed
Gets a value indicating whether the stream has been closed.
Declaration
bool IsClosed { get; }
Property Value
Type | Description |
---|---|
System. |
LastMessageCreationTime
Gets the last creation time of a message in the stream.
Declaration
DateTime LastMessageCreationTime { get; }
Property Value
Type | Description |
---|---|
Date |
See Also
View SourceLastMessageOriginatingTime
Gets the last originating time of a message in the stream.
Declaration
DateTime LastMessageOriginatingTime { get; }
Property Value
Type | Description |
---|---|
Date |
See Also
View SourceMessageCount
Gets the number of messages in the stream.
Declaration
long MessageCount { get; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets the name of the stream the metadata represents.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System. |
OpenedTime
Gets the time when the stream was opened.
Declaration
DateTime OpenedTime { get; }
Property Value
Type | Description |
---|---|
Date |
StoreName
Gets the name of the store containing the stream.
Declaration
string StoreName { get; }
Property Value
Type | Description |
---|---|
System. |
StorePath
Gets the path of the store containing the stream.
Declaration
string StorePath { get; }
Property Value
Type | Description |
---|---|
System. |
SupplementalMetadataTypeName
Gets the name of the type of supplemental metadata for the stream the metadata represents.
Declaration
string SupplementalMetadataTypeName { get; }
Property Value
Type | Description |
---|---|
System. |
TypeName
Gets the name of the type of data contained in the stream the metadata represents.
Declaration
string TypeName { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
View SourceGetSupplementalMetadata<T>()
Gets supplemental stream metadata.
Declaration
T GetSupplementalMetadata<T>()
Returns
Type | Description |
---|---|
T | Supplemental metadata. |
Type Parameters
Name | Description |
---|---|
T | Type of supplemental metadata. |
Update(Envelope, Int32)
Updates this stream metadata with the specified envelope and size.
Declaration
void Update(Envelope envelope, int size)
Parameters
Type | Name | Description |
---|---|---|
Envelope | envelope | The envelope. |
System. |
size | The size. |
Update(TimeInterval, TimeInterval)
Updates this stream metadata with the times and originating times of the first and last messages.
Declaration
void Update(TimeInterval messagesTimeInterval, TimeInterval messagesOriginatingTimeInterval)
Parameters
Type | Name | Description |
---|---|---|
Time |
messagesTimeInterval | A TimeInterval representing the times of the first and last messages in the stream. |
Time |
messagesOriginatingTimeInterval | A TimeInterval representing the originating times of the first and last messages in the stream. |