JoinLogManager

API reference for JoinLogManager in @erlcjs/core.

Manager responsible for fetching, caching, and updating JoinLog structures.

Signature:

declare class JoinLogManager

#Constructors

Constructor

Modifiers

Description

(constructor)(server, maxCacheSize)

Creates an instance of JoinLogManager.

#Properties

Property

Modifiers

Type

Description

cache

Collection<string, JoinLog>

Collection cache of join and leave logs, keyed by a composite Player:Timestamp:Join key.

#Methods

Method

Modifiers

Description

fetchAll()

Fetches all join logs from the game server. Updates the join log cache.

updateCache(rawJoinLogs)

Re-synchronizes the cache with the raw join logs. Emits a joinLog event for new logs.