public final class ServerMessageQueue extends AbstractServerObject<ServerContext>
Session
s. From
there they are queued further to the client's ServerNetworkAdapter
s. Note that
the latter contains another client specific message queue which actually delivers the
messages to the client's network socket.Constructor and Description |
---|
ServerMessageQueue(ServerContext serverCtx) |
Modifier and Type | Method and Description |
---|---|
void |
pingAllClients()
Sends a ping message to all clients in order to verify their existence
|
void |
sendClientCommand(ClientCommand<?> command) |
void |
sendLogMessage(LogMessageEvent event) |
void |
sendNetEvent(NetEvent event)
Dispatches a custom event to all registered clients.
|
void |
sendNetEvent(NetEvent event,
Group targetGroup) |
void |
sendNetEvent(NetEvent event,
SessionId targetSession) |
void |
sendNetEvent(NetEvent event,
UserId targetUser) |
void |
sendNetMessage(NetMessage messg)
Dispatches a message to all connected clients.
|
void |
sendNetMessage(NetMessage messg,
Group targetGroup)
Dispatches a message to all users of the given target group.
|
void |
sendNetMessage(NetMessage messg,
SessionId targetSession)
Dispatches a message to the given target session only.
|
void |
sendNetMessage(NetMessage messg,
UserId targetUser)
Dispatches a message to all sessions of the given target user only.
|
void |
sendProcessEvent(BatchTaskEvent event) |
void |
sendRecordChangeMessage(RemoteRecordChangeEvent e) |
void |
sendRemoteTaskEvent(RemoteTaskEvent event) |
void |
sendServerMessage(ServerNotificationMessage msg) |
void |
sendServerMessage(ServerNotificationMessage msg,
Group targetGroup) |
void |
sendServerMessage(ServerNotificationMessage msg,
SessionId targetSession) |
void |
sendServerMessage(ServerNotificationMessage msg,
UserId targetUser) |
void |
sendStatusEvent(ServerStatusEvent statEvent)
Dispatches a server status event to all registered clients.
|
void |
sendStatusEvent(ServerStatusEvent statEvent,
SessionId targetSession) |
void |
sendSystemEvent(SystemEvent sysEvent) |
void |
sendSystemEvent(SystemEvent sysEvent,
Group targetGroup) |
void |
sendSystemEvent(SystemEvent sysEvent,
SessionId targetSession) |
void |
sendSystemEvent(SystemEvent sysEvent,
UserId targetUser) |
checkPermission, getServerConfig, getServerContext, getStatisticManager, toString
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
public ServerMessageQueue(ServerContext serverCtx)
public void sendRemoteTaskEvent(RemoteTaskEvent event)
public void sendLogMessage(LogMessageEvent event)
public void sendProcessEvent(BatchTaskEvent event)
public void sendServerMessage(ServerNotificationMessage msg)
public void sendServerMessage(ServerNotificationMessage msg, SessionId targetSession)
public void sendServerMessage(ServerNotificationMessage msg, UserId targetUser)
public void sendServerMessage(ServerNotificationMessage msg, Group targetGroup)
public void sendRecordChangeMessage(RemoteRecordChangeEvent e)
public void sendNetMessage(NetMessage messg, SessionId targetSession)
public void sendNetMessage(NetMessage messg, UserId targetUser)
public void sendNetMessage(NetMessage messg, Group targetGroup)
public void sendStatusEvent(ServerStatusEvent statEvent)
public void sendStatusEvent(ServerStatusEvent statEvent, SessionId targetSession)
public void sendSystemEvent(SystemEvent sysEvent)
public void sendSystemEvent(SystemEvent sysEvent, SessionId targetSession)
public void sendSystemEvent(SystemEvent sysEvent, UserId targetUser)
public void sendSystemEvent(SystemEvent sysEvent, Group targetGroup)
public void sendNetEvent(NetEvent event)
public void sendClientCommand(ClientCommand<?> command)
public void pingAllClients()
public void sendNetMessage(NetMessage messg)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.