Photon Server API Documentation v5.0RC1

Public Member Functions | List of all members
ExitGames.Concurrency.Channels.IQueueChannel< T > Interface Template Reference

Creates a queue that will deliver a message to a single consumer. Load balancing can be achieved by creating multiple subscribers to the queue. More...

Inheritance diagram for ExitGames.Concurrency.Channels.IQueueChannel< T >:
ExitGames.Concurrency.Channels.QueueChannel< T >

Public Member Functions

IDisposable Subscribe (IExecutionContext executionContext, Action< T > onMessage)
 Subscribe to the context. More...
 
void Publish (T message)
 Pushes a message into the queue. Message will be processed by first available consumer. More...
 

Detailed Description

Creates a queue that will deliver a message to a single consumer. Load balancing can be achieved by creating multiple subscribers to the queue.

Template Parameters
T

Member Function Documentation

◆ Publish()

void ExitGames.Concurrency.Channels.IQueueChannel< T >.Publish ( message)

Pushes a message into the queue. Message will be processed by first available consumer.

Parameters
message

Implemented in ExitGames.Concurrency.Channels.QueueChannel< T >.

◆ Subscribe()

IDisposable ExitGames.Concurrency.Channels.IQueueChannel< T >.Subscribe ( IExecutionContext  executionContext,
Action< T >  onMessage 
)

Subscribe to the context.

Parameters
executionContext
onMessage
Returns

Implemented in ExitGames.Concurrency.Channels.QueueChannel< T >.