Interface ForwardDiscoveryCallback
public interface ForwardDiscoveryCallback
Callback interface for receiving notifications about forward registration lifecycle events.
Implementations of this interface can be registered with a ForwardRegistrationManager
to receive notifications when forward registration operations occur, such as successful
registration or deregistration.
Callbacks are invoked synchronously after the corresponding operation completes. If a callback throws an exception, it will be logged but will not prevent other registered callbacks from executing.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked after a deregistration attempt is made.voidonRegistration(ForwardRegistrationManager manager) Invoked after the forward has been successfully registered with the router.
-
Method Details
-
onRegistration
Invoked after the forward has been successfully registered with the router.- Parameters:
manager- theForwardRegistrationManagerthat performed the registration
-
onDeregistration
Invoked after a deregistration attempt is made.- Parameters:
manager- theForwardRegistrationManagerthat performed the deregistration
-