Module it.rebirthproject.ufoeb
Class RegistrationMethodHandler
java.lang.Object
it.rebirthproject.ufoeb.dto.registrations.Registration
it.rebirthproject.ufoeb.dto.registrations.RegistrationMethodHandler
DTO Representing all the data of a listener to register in the system.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Handler
The handler method to invoke when a new notification for the listener needs to be delivered.Fields inherited from class it.rebirthproject.ufoeb.dto.registrations.Registration
listener, method, priority
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for methodHandler to invoke when a new notification for the listener needs to be deliveredvoid
Method to process a registrationMethods inherited from class it.rebirthproject.ufoeb.dto.registrations.Registration
getListener, getMethod, getPriority
-
Field Details
-
methodHandler
The handler method to invoke when a new notification for the listener needs to be delivered. This should be faster.
-
-
Constructor Details
-
RegistrationMethodHandler
- Parameters:
listener
- The listener of theRegistration
method
- The callback method to invoke when a new notification for the listener needs to be deliveredpriority
- The priority of theRegistration
- Throws:
Throwable
-
-
Method Details
-
getMethodHandler
Getter for methodHandler to invoke when a new notification for the listener needs to be delivered- Returns:
- The methodHandler to invoke when a new notification for the listener needs to be delivered
-
process
Description copied from class:Registration
Method to process a registration- Specified by:
process
in classRegistration
- Parameters:
event
- the event to process- Throws:
Exception
-