Photon Server API Documentation v5.0RC1

Public Member Functions | Public Attributes | List of all members
ExitGames.Threading.ExtendedFailSafeExecutor Class Reference
Inheritance diagram for ExitGames.Threading.ExtendedFailSafeExecutor:
ExitGames.Threading.FailSafeBatchExecutor ExitGames.Concurrency.Fibers.IExtendedExecutor ExitGames.Concurrency.Core.IExecutor ExitGames.Concurrency.Core.IExecutor

Public Member Functions

 ExtendedFailSafeExecutor ()
 Initializes a new instance of the ExtendedFailSafeExecutor class that logs all exceptions to a ILogger. More...
 
 ExtendedFailSafeExecutor (Action< Exception > exceptionHandler)
 Initializes a new instance of the ExtendedFailSafeExecutor class that forwards all exceptions to a custom exception handler. More...
 
override void Execute (List< IFiberAction > toExecute)
 Executes all actions. More...
 
override void Execute (IFiberAction toExecute)
 Executes an action and forwards exceptions to the assigned exception handler. More...
 
virtual void Pause ()
 
virtual void Resume (IFiberAction executeFirstAction)
 
- Public Member Functions inherited from ExitGames.Threading.FailSafeBatchExecutor
 FailSafeBatchExecutor ()
 Initializes a new instance of the FailSafeBatchExecutor class that logs all exceptions to a ILogger. More...
 
 FailSafeBatchExecutor (Action< Exception > exceptionHandler)
 Initializes a new instance of the FailSafeBatchExecutor class that forwards all exceptions to a custom exception handler. More...
 
virtual void Execute (System.Collections.Generic.List< IFiberAction > actionList)
 Executes a list of actions with Execute(IFiberAction). More...
 

Public Attributes

virtual bool IsPaused => this.pause
 

Additional Inherited Members

- Properties inherited from ExitGames.Threading.FailSafeBatchExecutor
bool IsEnabled [get, set]
 Gets or sets a value indicating whether the executor is enabled. When disabled, actions will be ignored by executor. The executor is typically disabled at shutdown to prevent any pending actions from being executed. More...
 
- Properties inherited from ExitGames.Concurrency.Fibers.IExtendedExecutor
bool IsPaused [get]
 

Constructor & Destructor Documentation

◆ ExtendedFailSafeExecutor() [1/2]

ExitGames.Threading.ExtendedFailSafeExecutor.ExtendedFailSafeExecutor ( )
inline

Initializes a new instance of the ExtendedFailSafeExecutor class that logs all exceptions to a ILogger.

◆ ExtendedFailSafeExecutor() [2/2]

ExitGames.Threading.ExtendedFailSafeExecutor.ExtendedFailSafeExecutor ( Action< Exception >  exceptionHandler)
inline

Initializes a new instance of the ExtendedFailSafeExecutor class that forwards all exceptions to a custom exception handler.

Parameters
exceptionHandlerThe exception handler.

Member Function Documentation

◆ Execute() [1/2]

override void ExitGames.Threading.ExtendedFailSafeExecutor.Execute ( IFiberAction  action)
inlinevirtual

Executes an action and forwards exceptions to the assigned exception handler.

Parameters
actionThe action.

Reimplemented from ExitGames.Threading.FailSafeBatchExecutor.

◆ Execute() [2/2]

override void ExitGames.Threading.ExtendedFailSafeExecutor.Execute ( List< IFiberAction toExecute)
inline

Executes all actions.

Parameters
toExecute

summary> Executes a single action. /summary> param name="toExecute">

Implements ExitGames.Concurrency.Core.IExecutor.

◆ Pause()

virtual void ExitGames.Threading.ExtendedFailSafeExecutor.Pause ( )
inlinevirtual

◆ Resume()

virtual void ExitGames.Threading.ExtendedFailSafeExecutor.Resume ( IFiberAction  executeFirstAction)
inlinevirtual

Member Data Documentation

◆ IsPaused

virtual bool ExitGames.Threading.ExtendedFailSafeExecutor.IsPaused => this.pause