public class AbstractDefaultListenerBase extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDefaultListenerBase.MessageTargetInfo
Information about the target of a message.
|
| Constructor and Description |
|---|
AbstractDefaultListenerBase(Client.WithManagement client)
Constructs the listener.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fire(@NonNull ClientEvent event)
Fires an event.
|
protected Client.WithManagement |
getClient()
Gets the client.
|
protected @NonNull ActorTracker |
getTracker()
Gets the actor tracker.
|
protected @NonNull AbstractDefaultListenerBase.MessageTargetInfo |
getTypeByTarget(@NonNull String target)
Gets the relevant info about a message target.
|
@NonNull String |
toString() |
protected void |
trackException(@NonNull ClientReceiveServerMessageEvent event,
@NonNull String reason)
Fires an exception in processing a server message event.
|
public AbstractDefaultListenerBase(Client.WithManagement client)
client - clientprotected Client.WithManagement getClient()
protected void fire(@NonNull ClientEvent event)
event - event to fireEventManager.callEvent(Object)protected void trackException(@NonNull ClientReceiveServerMessageEvent event, @NonNull String reason)
event - event causing troublereason - reason for the troubleprotected @NonNull ActorTracker getTracker()
Client.WithManagement#getActorTracker()protected @NonNull AbstractDefaultListenerBase.MessageTargetInfo getTypeByTarget(@NonNull String target)
target - target in string formCopyright © 2013–2021 Kitteh. All rights reserved.