Photon Server API
Public Member Functions | List of all members
ExitGames.Concurrency.Channels.SnapshotChannel< T > Class Template Reference

A SnapshotChannel is a channel that allows for the transmission of an initial snapshot followed by incremental updates. The class is thread safe. /summary> typeparam name="T"> More...

Inheritance diagram for ExitGames.Concurrency.Channels.SnapshotChannel< T >:
ExitGames.Concurrency.Channels.ISnapshotChannel< T > ExitGames.Concurrency.Channels.IPublisher< T >

Public Member Functions

 SnapshotChannel (int timeoutInMs)
 
void PrimedSubscribe (IFiber fiber, Action< T > receive)
 
bool Publish (T update)
 
void ReplyToPrimingRequest (IFiber fiber, Func< T > reply)
 

Detailed Description

A SnapshotChannel is a channel that allows for the transmission of an initial snapshot followed by incremental updates. The class is thread safe. /summary> typeparam name="T">

Constructor & Destructor Documentation

summary> Subscribes for an initial snapshot and then incremental update. /summary> param name="fiber">the target executor to receive the message

param name="receive">

Member Function Documentation

void ExitGames.Concurrency.Channels.SnapshotChannel< T >.PrimedSubscribe ( IFiber  fiber,
Action< T >  receive 
)
inline

summary> Publishes the incremental update. /summary> param name="update">

Implements ExitGames.Concurrency.Channels.ISnapshotChannel< T >.

bool ExitGames.Concurrency.Channels.SnapshotChannel< T >.Publish ( update)
inline

summary> Ressponds to the request for an initial snapshot. /summary> param name="fiber">the target executor to receive the message

param name="reply">returns the snapshot update

Implements ExitGames.Concurrency.Channels.IPublisher< T >.

void ExitGames.Concurrency.Channels.SnapshotChannel< T >.ReplyToPrimingRequest ( IFiber  fiber,
Func< T >  reply 
)
inline