public interface RegistrationConnectionListener<Success 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(Success success)
This method is called by the
RegisteredRpcConnection when the registration is success. |
void onRegistrationSuccess(Success success)
RegisteredRpcConnection
when the registration is success.success
- The concrete response information for successful registration.void onRegistrationFailure(Throwable failure)
RegisteredRpcConnection
when the registration fails.failure
- The exception which causes the registration failure.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.