Package velox.api.layer1
Interface Layer1ApiAdminAdapter
- All Superinterfaces:
Layer1ApiAdminListener
- All Known Subinterfaces:
Layer1ApiAdapter
public interface Layer1ApiAdminAdapter extends Layer1ApiAdminListener
Provides default empty implementations.
-
Method Summary
Modifier and Type Method Description default voidonConnectionLost(DisconnectionReason reason, java.lang.String message)Connection to server lostdefault voidonConnectionRestored()Connection to server restoreddefault voidonLoginFailed(LoginFailedReason reason, java.lang.String message)Failed to login with specified credentialsdefault voidonLoginSuccessful()Successful login.default voidonSystemTextMessage(java.lang.String message, SystemTextMessageType messageType)Some message from the system.default voidonUserMessage(java.lang.Object data)Allows incorporating arbitrary functionality into protocol
-
Method Details
-
onLoginFailed
Description copied from interface:Layer1ApiAdminListenerFailed to login with specified credentials- Specified by:
onLoginFailedin interfaceLayer1ApiAdminListener- Parameters:
reason- reason codemessage- test message associated with login fail (may be null)
-
onLoginSuccessful
default void onLoginSuccessful()Description copied from interface:Layer1ApiAdminListenerSuccessful login.- Specified by:
onLoginSuccessfulin interfaceLayer1ApiAdminListener
-
onConnectionLost
Description copied from interface:Layer1ApiAdminListenerConnection to server lost- Specified by:
onConnectionLostin interfaceLayer1ApiAdminListener- Parameters:
reason- reason codemessage- test message associated with login disconnection (may be null)
-
onConnectionRestored
default void onConnectionRestored()Description copied from interface:Layer1ApiAdminListenerConnection to server restored- Specified by:
onConnectionRestoredin interfaceLayer1ApiAdminListener
-
onSystemTextMessage
Description copied from interface:Layer1ApiAdminListenerSome message from the system. Usually you want to show it to user in some way- Specified by:
onSystemTextMessagein interfaceLayer1ApiAdminListener- Parameters:
message- message itselfmessageType- message type
-
onUserMessage
default void onUserMessage(java.lang.Object data)Description copied from interface:Layer1ApiAdminListenerAllows incorporating arbitrary functionality into protocol- Specified by:
onUserMessagein interfaceLayer1ApiAdminListener- Parameters:
data- Message content
-