Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
ExitGames.Diagnostics.Counter.ICounter Interface Reference

Represents a counter instance. More...

Inheritance diagram for ExitGames.Diagnostics.Counter.ICounter:
ExitGames.Concurrency.Fibers.EmptyCounter ExitGames.Diagnostics.Counter.CounterBase ExitGames.Diagnostics.Counter.PerformanceCounterReader ExitGames.Diagnostics.Counter.WindowsPerformanceCounter Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader Photon.Common.LoadBalancer.LoadShedding.Diagnostics.Linux.LinuxBytesInCounterReader Photon.Common.LoadBalancer.LoadShedding.Diagnostics.Linux.LinuxBytesOutCounterReader Photon.Common.LoadBalancer.LoadShedding.Diagnostics.Linux.LinuxCPUReader Photon.SocketServer.Diagnostics.Counters.Wrappers.PerformanceCounterWrapper

Public Member Functions

long Decrement ()
 Decrements the counter by one. More...
 
float GetNextValue ()
 Gets the next value. More...
 
long Increment ()
 Increments the counter by one and returns the new value. More...
 
long IncrementBy (long value)
 Increments the counter by a given value. More...
 

Properties

CounterType CounterType [get]
 Gets the type of the counter. More...
 
string Name [get]
 Gets the name of the counter. More...
 
bool IsValid [get]
 Returns whether counter is valid or not For WindowsPerfCounters this method may return value whether counter exists or not More...
 

Detailed Description

Represents a counter instance.

Member Function Documentation

◆ Decrement()

long ExitGames.Diagnostics.Counter.ICounter.Decrement ( )

◆ GetNextValue()

float ExitGames.Diagnostics.Counter.ICounter.GetNextValue ( )

◆ Increment()

long ExitGames.Diagnostics.Counter.ICounter.Increment ( )

◆ IncrementBy()

long ExitGames.Diagnostics.Counter.ICounter.IncrementBy ( long  value)

Property Documentation

◆ CounterType

CounterType ExitGames.Diagnostics.Counter.ICounter.CounterType
get

Gets the type of the counter.

The type of the counter.

◆ IsValid

bool ExitGames.Diagnostics.Counter.ICounter.IsValid
get

Returns whether counter is valid or not For WindowsPerfCounters this method may return value whether counter exists or not

◆ Name

string ExitGames.Diagnostics.Counter.ICounter.Name
get

Gets the name of the counter.