Photon Server API
Public Member Functions | Properties | 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< Action > toExecute)
 Executes all actions. More...
 
override void Execute (Action toExecute)
 Executes an action and forwards exceptions to the assigned exception handler. More...
 
virtual void Pause ()
 
virtual void Resume (Action 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< Action > actionList)
 Exexutes a list of actions with Execute(Action). More...
 
- Public Member Functions inherited from ExitGames.Concurrency.Fibers.IExtendedExecutor
void Resume ()
 

Properties

virtual bool IsPaused [get]
 
- 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

ExitGames.Threading.ExtendedFailSafeExecutor.ExtendedFailSafeExecutor ( )
inline

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

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

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

Executes all actions.

Parameters
toExecute

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

Implements ExitGames.Concurrency.Core.IExecutor.

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

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

Parameters
actionThe action.

Reimplemented from ExitGames.Threading.FailSafeBatchExecutor.

virtual void ExitGames.Threading.ExtendedFailSafeExecutor.Pause ( )
inlinevirtual
virtual void ExitGames.Threading.ExtendedFailSafeExecutor.Resume ( Action  executeFirstAction)
inlinevirtual

Property Documentation

virtual bool ExitGames.Threading.ExtendedFailSafeExecutor.IsPaused
get