Class ChatPumpQuery
One read of the cross-server chat pump: where to start, what the reader has already seen, and which rows are worth sending it at all.
public sealed class ChatPumpQuery
- Inheritance
-
ChatPumpQuery
- Inherited Members
Remarks
Relevance is decided by the database, not by the reader. Every scene server used to fetch every other server's World, Trade, Tell, Party and Guild lines in one shared page, so the page budget was spent on rows the reader then threw away. The arrays below name what this reader hosts; a row that concerns none of it is never returned, and a busy shard no longer starves a quiet server's whispers.
A row is matched by the same key its handler routes it by: the world column for World, Trade and Discord, and the first word of the message for Party (party ID), Guild (guild ID) and Tell (target name, compared case-insensitively). An empty array matches nothing.
Properties
ExcludeIds
Row IDs the reader has already handled. The read trails behind its own progress to catch rows committed out of stamp order, so without this every row in that window would come back on every read.
public long[] ExcludeIds { get; set; }
Property Value
- long[]
FromUtc
Oldest time_created to read, by the database clock. Null starts at the database's
own "now", for a reader that has not read before.
public DateTime? FromUtc { get; set; }
Property Value
GuildIds
Guild IDs with a member on this scene server.
public long[] GuildIds { get; set; }
Property Value
- long[]
MaxPages
Most pages read in one call. Reading continues while a page comes back full, so this is what bounds one call's work when the reader has fallen behind.
public int MaxPages { get; set; }
Property Value
PageSize
Rows per page.
public int PageSize { get; set; }
Property Value
PartyIds
Party IDs with a member on this scene server.
public long[] PartyIds { get; set; }
Property Value
- long[]
SceneServerId
The reading scene server. Rows it wrote itself on channels it has already delivered locally are its own echo and are not returned.
public long SceneServerId { get; set; }
Property Value
TellTargetsLowerCase
Lower-case names of the characters on this scene server, the only possible tell targets here.
public string[] TellTargetsLowerCase { get; set; }
Property Value
- string[]
WorldServerIds
World server IDs with a character on this scene server (World, Trade, Discord).
public long[] WorldServerIds { get; set; }
Property Value
- long[]