Class AbstractProfiledResourceSubscriptionListener<R extends Serializable,​T extends ResourceEvent<R>>

    • Constructor Detail

      • AbstractProfiledResourceSubscriptionListener

        public AbstractProfiledResourceSubscriptionListener()
    • Method Detail

      • onDeletion

        public void onDeletion​(T event)
                        throws Exception
        Description copied from interface: ResourceEventListener
        An event on the deletion of a resource has be listened. A deleted resource is nonexistent and nonrecoverable. By default, this method does nothing.
        Parameters:
        event - the event on the deletion of a resource.
        Throws:
        Exception - if an error occurs while treating the event.
      • onUpdate

        public void onUpdate​(T event)
                      throws Exception
        Description copied from interface: ResourceEventListener
        An event on the update of a resource has be listened. By default, this method does nothing.
        Parameters:
        event - the event on the update of a resource.
        Throws:
        Exception - if an error occurs while treating the event.
      • getSubscriptionResource

        protected abstract SubscriptionResource getSubscriptionResource​(R resource)
      • isSubscriptionEnabled

        protected abstract boolean isSubscriptionEnabled​(R resource)