Class AbstractChannelSubscriber

java.lang.Object
org.jenkinsci.plugins.pubsub.AbstractChannelSubscriber
All Implemented Interfaces:
ExtensionPoint, ChannelSubscriber

public abstract class AbstractChannelSubscriber extends Object implements ChannelSubscriber, ExtensionPoint
Simple asynchronous ChannelSubscriber ExtensionPoint for Jenkins.
Author:
tom.fennelly@gmail.com
  • Constructor Details

    • AbstractChannelSubscriber

      public AbstractChannelSubscriber()
  • Method Details

    • getChannelName

      public abstract String getChannelName()
      Get the name of the channel on which the subscriber will listen.
      Returns:
      The channel name.
    • getAuthentication

      @Deprecated public Authentication getAuthentication()
      Deprecated.
      Get the Authentication used for listening for events on the channel.

      Override to restrict. Default is ACL.SYSTEM.

      Returns:
      The Authentication used for listening for events on the channel.
    • getAuthentication2

      public org.springframework.security.core.Authentication getAuthentication2()
      Get the Authentication used for listening for events on the channel.

      Override to restrict. Default is ACL.SYSTEM2.

      Returns:
      The Authentication used for listening for events on the channel.
    • getEventFilter

      public EventFilter getEventFilter()
      Get the event filter to be used for messages on the channel.

      Override this method to define an EventFilter instance. Default is null i.e. no filtering.

      Returns:
      The EventFilter instance.