public final class ServerMessage extends AbstractEBusMessage implements Serializable
remote Internet address and TCP port
of a connection newly accepted by EServer but not yet
logged in.
All such messages have the subject
/eBus. Subscribe
to
ServerMessage.class:/eBus to receive this
notification.
Note: this notification is published locally only and is not sent to remote eBus applications.
ConnectionMessage,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
ServerMessage.Builder
Use this builder to create
ServerMessage
instances. |
EMessage.MessageType| Modifier and Type | Field and Description |
|---|---|
static EMessageKey |
MESSAGE_KEY
The server message key
ServerMessage.class:/eBus. |
EBUS_SUBJECT, remoteAddress, serverPortMAX_FIELDS| Constructor and Description |
|---|
ServerMessage(InetSocketAddress addr,
int port)
Deprecated.
use
ServerMessage.Builder to create server message. |
ServerMessage(String subject,
long timestamp,
InetSocketAddress addr,
int port)
Deprecated.
use
ServerMessage.Builder to create server message. |
| Modifier and Type | Method and Description |
|---|---|
static ServerMessage.Builder |
builder()
Returns a new server message builder instance.
|
toStringequals, hashCode, isApplicationMessage, isSystemMessage, key, messageTypepublic static final EMessageKey MESSAGE_KEY
ServerMessage.class:/eBus.
Use this key when opening a system message
feed.@Deprecated public ServerMessage(InetSocketAddress addr, int port) throws IllegalArgumentException
ServerMessage.Builder to create server message."/eBus" and the
timestamp to the current time.addr - the newly accepted remote TCP address.port - connection accepted on this port.IllegalArgumentException - if addr is null.@Deprecated public ServerMessage(String subject, long timestamp, InetSocketAddress addr, int port) throws IllegalArgumentException
ServerMessage.Builder to create server message.subject - the notification subject. Will always be
"/eBus".timestamp - the notification timestamp.addr - the newly accepted remote TCP address.port - connection accepted on this port.IllegalArgumentException - if addr is null.public static ServerMessage.Builder builder()
Copyright © 2019. All rights reserved.