Class WebhookIOListener

  • All Implemented Interfaces:
    IOListener

    @Singleton
    public class WebhookIOListener
    extends Object
    implements IOListener
    Listens for IO events and forwards them to the registered webhooks, via a queue.
    Author:
    Alex Bogdanovski [alex@erudika.com]
    • Constructor Detail

      • WebhookIOListener

        public WebhookIOListener()
    • Method Detail

      • onPreInvoke

        public void onPreInvoke​(Method method,
                                Object[] args)
        Description copied from interface: IOListener
        Called before an I/O (CRUD) operation has occurred.
        Specified by:
        onPreInvoke in interface IOListener
        Parameters:
        method - the DAO method which will be invoked after this
        args - the list of arguments supplied to the DAO method called
      • onPostInvoke

        public void onPostInvoke​(Method method,
                                 Object[] args,
                                 Object result)
        Description copied from interface: IOListener
        Called after an I/O (CRUD) operation has occurred.
        Specified by:
        onPostInvoke in interface IOListener
        Parameters:
        method - the DAO method which was invoked before this
        args - the list of arguments supplied to the DAO method called
        result - the result of the IO operation