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

Batches actions for the consuming thread. More...

Inheritance diagram for ExitGames.Concurrency.Channels.BatchSubscriber< T >:
ExitGames.Concurrency.Channels.BaseSubscription< T > ExitGames.Concurrency.Channels.ISubscribable< T > ExitGames.Concurrency.Channels.IProducerThreadSubscriber< T >

Public Member Functions

 BatchSubscriber (IFiber fiber, Action< IList< T >> receive, int interval)
 Construct new instance. More...
 
- Public Member Functions inherited from ExitGames.Concurrency.Channels.BaseSubscription< T >
void ReceiveOnProducerThread (T msg)
 IProducerThreadSubscriber<T>.ReceiveOnProducerThread More...
 

Protected Member Functions

override void OnMessageOnProducerThread (T msg)
 Receives message and batches as needed. More...
 

Properties

override ISubscriptionRegistry Subscriptions [get]
 
- Properties inherited from ExitGames.Concurrency.Channels.BaseSubscription< T >
Filter< T > FilterOnProducerThread [get, set]
 ISubscribable<T>.FilterOnProducerThread More...
 
abstract ISubscriptionRegistry Subscriptions [get]
 
- Properties inherited from ExitGames.Concurrency.Channels.ISubscribable< T >
Filter< T > FilterOnProducerThread [get, set]
 Filter called from producer threads. Should be thread safe as it may be called from multiple threads. More...
 
- Properties inherited from ExitGames.Concurrency.Channels.IProducerThreadSubscriber< T >
ISubscriptionRegistry Subscriptions [get]
 

Detailed Description

Batches actions for the consuming thread.

Template Parameters
T

Constructor & Destructor Documentation

ExitGames.Concurrency.Channels.BatchSubscriber< T >.BatchSubscriber ( IFiber  fiber,
Action< IList< T >>  receive,
int  interval 
)
inline

Construct new instance.

Parameters
fiber
receive
interval

summary> Allows for the registration and deregistration of subscriptions /summary>

Member Function Documentation

override void ExitGames.Concurrency.Channels.BatchSubscriber< T >.OnMessageOnProducerThread ( msg)
inlineprotectedvirtual

Receives message and batches as needed.

Parameters
msg

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

Property Documentation