public static interface Client.Builder.Listeners
| Modifier and Type | Method and Description |
|---|---|
@NonNull Client.Builder.Listeners |
exception(@Nullable Consumer<Exception> listener)
Sets a listener for all thrown exceptions on this client.
|
@NonNull Client.Builder.Listeners |
input(@Nullable Consumer<String> listener)
Sets a listener for all incoming messages from the server.
|
@NonNull Client.Builder.Listeners |
output(@Nullable Consumer<String> listener)
Sets a listener for all outgoing messages to the server.
|
@NonNull Client.Builder |
then()
Returns to the root builder.
|
@NonNull Client.Builder.Listeners input(@Nullable Consumer<String> listener)
All messages are passed from a single, separate thread.
listener - input listener or null to not listen@NonNull Client.Builder.Listeners output(@Nullable Consumer<String> listener)
All messages are passed from a single, separate thread.
listener - output listener or null to not listen@NonNull Client.Builder.Listeners exception(@Nullable Consumer<Exception> listener)
All exceptions are passed from a single, separate thread.
listener - catcher of throwable objects or null to not listen@NonNull Client.Builder then()
Copyright © 2013–2021 Kitteh. All rights reserved.