Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
Photon.Hive.Caching.EventCacheDictionary Class Reference

Dictionary implementation to store EventCache instances by actor number. More...

Inheritance diagram for Photon.Hive.Caching.EventCacheDictionary:

Public Member Functions

 EventCacheDictionary ()
 
EventCache GetOrCreateEventCache (int actorNumber)
 
bool TryGetEventCache (int actorNumber, out EventCache eventCache)
 
bool RemoveEventCache (int actorNumber)
 
void ReplaceEvent (int actorNumber, byte eventCode, Hashtable eventData)
 
bool RemoveEvent (int actorNumber, byte eventCode)
 
bool MergeEvent (int actorNumber, byte eventCode, Hashtable eventData, out string msg)
 
IEnumerator< KeyValuePair< int, EventCache > > GetEnumerator ()
 
void Discard ()
 

Properties

int CachedEventsCountLimit [get, set]
 
int MaxCachedEventsPerActor [get]
 
int MaxCachedEventsInTotal [get]
 
bool IsTotalLimitExceeded [get]
 
bool Discarded [get]
 

Detailed Description

Dictionary implementation to store EventCache instances by actor number.

Constructor & Destructor Documentation

◆ EventCacheDictionary()

Photon.Hive.Caching.EventCacheDictionary.EventCacheDictionary ( )
inline

Member Function Documentation

◆ Discard()

void Photon.Hive.Caching.EventCacheDictionary.Discard ( )
inline

◆ GetEnumerator()

IEnumerator<KeyValuePair<int, EventCache> > Photon.Hive.Caching.EventCacheDictionary.GetEnumerator ( )
inline

◆ GetOrCreateEventCache()

EventCache Photon.Hive.Caching.EventCacheDictionary.GetOrCreateEventCache ( int  actorNumber)
inline

◆ MergeEvent()

bool Photon.Hive.Caching.EventCacheDictionary.MergeEvent ( int  actorNumber,
byte  eventCode,
Hashtable  eventData,
out string  msg 
)
inline

◆ RemoveEvent()

bool Photon.Hive.Caching.EventCacheDictionary.RemoveEvent ( int  actorNumber,
byte  eventCode 
)
inline

◆ RemoveEventCache()

bool Photon.Hive.Caching.EventCacheDictionary.RemoveEventCache ( int  actorNumber)
inline

◆ ReplaceEvent()

void Photon.Hive.Caching.EventCacheDictionary.ReplaceEvent ( int  actorNumber,
byte  eventCode,
Hashtable  eventData 
)
inline

◆ TryGetEventCache()

bool Photon.Hive.Caching.EventCacheDictionary.TryGetEventCache ( int  actorNumber,
out EventCache  eventCache 
)
inline

Property Documentation

◆ CachedEventsCountLimit

int Photon.Hive.Caching.EventCacheDictionary.CachedEventsCountLimit
getset

◆ Discarded

bool Photon.Hive.Caching.EventCacheDictionary.Discarded
get

◆ IsTotalLimitExceeded

bool Photon.Hive.Caching.EventCacheDictionary.IsTotalLimitExceeded
get

◆ MaxCachedEventsInTotal

int Photon.Hive.Caching.EventCacheDictionary.MaxCachedEventsInTotal
get

◆ MaxCachedEventsPerActor

int Photon.Hive.Caching.EventCacheDictionary.MaxCachedEventsPerActor
get