public interface RegistrationConnectionListener<T extends RegisteredRpcConnection<?,?,S,?>,S extends RegistrationResponse.Success,R extends RegistrationResponse.Rejection>
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 |
onRegistrationRejection(String targetAddress,
R rejection)
This method is called by the
RegisteredRpcConnection when the registration is
rejected. |
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.void onRegistrationRejection(String targetAddress, R rejection)
RegisteredRpcConnection
when the registration is
rejected.targetAddress
- targetAddress from which the registration was rejected.rejection
- rejection containing more information.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.