Class RegistrationMethodHandler

java.lang.Object
it.rebirthproject.ufoeb.dto.registrations.Registration
it.rebirthproject.ufoeb.dto.registrations.RegistrationMethodHandler

public class RegistrationMethodHandler extends Registration
DTO Representing all the data of a listener to register in the system.
  • Field Details

    • methodHandler

      private final Handler methodHandler
      The handler method to invoke when a new notification for the listener needs to be delivered. This should be faster.
  • Constructor Details

    • RegistrationMethodHandler

      public RegistrationMethodHandler(Object listener, Method method, int priority) throws Throwable
      Parameters:
      listener - The listener of the Registration
      method - The callback method to invoke when a new notification for the listener needs to be delivered
      priority - The priority of the Registration
      Throws:
      Throwable
  • Method Details

    • getMethodHandler

      public Handler 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

      public void process(Object event) throws Exception
      Description copied from class: Registration
      Method to process a registration
      Specified by:
      process in class Registration
      Parameters:
      event - the event to process
      Throws:
      Exception