public interface RegistrationConnectionListener<T extends RegisteredRpcConnection<?,?,S>,S extends RegistrationResponse.Success>
RegisteredRpcConnection
have to implement this interface.Modifier and Type | Method and Description |
---|---|
void |
onRegistrationFailure(Throwable failure)
This method is called by the
RegisteredRpcConnection when the registration fails. |
void |
onRegistrationSuccess(T connection,
S success)
This method is called by the
RegisteredRpcConnection when the registration is success. |
void onRegistrationSuccess(T connection, S success)
RegisteredRpcConnection
when the registration is success.success
- The concrete response information for successful registration.connection
- The instance which established the connectionvoid onRegistrationFailure(Throwable failure)
RegisteredRpcConnection
when the registration fails.failure
- The exception which causes the registration failure.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.