An instance of a publisher for publishing tuples into a table. A publisher can be used to publish new or updated tuples to a table. The server determines if the tuple is new or updated based on the table's primary key. A publisher is created from GetTablePublisher(String) (or its overloads) where a publisher name is specified. Tuples published will include the name of the publisher and the specified SequenceNumber for tracking and recoverability purposes.

Namespace: StreamBase.LiveView.API
Assembly: StreamBase.LiveView.API (in StreamBase.LiveView.API.dll) Version: 2.1.7.4338 (2.1.7.4338)

Syntax

         
 C#  Visual Basic  Visual C++ 
public interface ITablePublisher
Public Interface ITablePublisher
public interface class ITablePublisher

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Close()()()()
Closes client and server resources held by the publisher.
Flush()()()()
Force the currently buffered tuples to be sent to the server. This method blocks while flushing occurs.
IsClosed()()()()
True if publisher has already been closed.
Publish(Tuple)
Publish a tuple without regard for recovering since no sequence number is specified.
Publish(Int64, Tuple)
Publish a tuple with a sequenceNumber. There are no specific requirements on sequenceNumber, but it can be used as a mechanism for recovery, so a monotonically increasing number is recommended such that the server, on recovery, can report what the last successfully published sequence number was per named publisher. With this approach, a publisher only needs to re-publish tuples starting from the last reported successful published sequenceNumber in LiveView.
Publish(Int64, Boolean, Tuple)
Publish a tuple with a sequenceNumber. There are no specific requirements on sequenceNumber, but it can be used as a mechanism for recovery, so a monotonically increasing number is recommended such that the server, on recovery, can report what the last successfully published sequence number was per named publisher. With this approach, a publisher only needs to re-publish tuples starting from the last reported successful published sequenceNumber in LiveView.
TableSchema
Schema needed to create tuples for the publish method. This schema does not include any internal fields maintained by LiveView. It will only be the necessary data fields of the table.

See Also