Was this page helpful?

IQueueStream Interface

    Table of contents
    1. 1. Members
      1. 1.1. Properties
      2. 1.2. Methods
    Table of Contents
    public abstract interface IQueueStream
    Namespace: MindTouch.IO
    Assembly: mindtouch.dream
    Type Hierarchy:
    • IQueueStream
    Implements:
    • IDisposable
    A record store with semantics for sequentially writing and retrieving records, similar to a queue, except that a read removes the head next record, but does not delete it until delete is called, allowing for transactional dequeuing of records.

    Members

    Properties

    Visibility Description
    Public UnreadCount Total number of records unread.

    Methods

    Visibility Description
    Public AppendRecord(Stream stream, long length) Append the given stream as a new record. It is assumed that the stream's position is set to the appropriate position.
    Public DeleteRecord(IQueueStreamHandle location) Permanently remove a record from the stream, identified by the MindTouch.IO.IQueueStreamHandle attached to the MindTouch.IO.QueueStreamRecord returned by IQueueStream.ReadNextRecord().
    Public ReadNextRecord() Read the next unread record from the stream. Will return QueueStreamRecord.Empty if there is no next record in the stream.
    Public Truncate() Truncate the QueueStream and drop all records.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by