Package org.jenkinsci.plugins.pubsub
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.org.springframework.security.core.AuthenticationGet theAuthenticationused for listening for events on the channel.abstract StringGet the name of the channel on which the subscriber will listen.Get the event filter to be used for messages on the channel.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jenkinsci.plugins.pubsub.ChannelSubscriber
onMessage
-
Constructor Details
-
AbstractChannelSubscriber
public AbstractChannelSubscriber()
-
-
Method Details
-
getChannelName
Get the name of the channel on which the subscriber will listen.- Returns:
- The channel name.
-
getAuthentication
Deprecated.UsegetAuthentication2()instead.Get theAuthenticationused for listening for events on the channel.Override to restrict. Default is
ACL.SYSTEM.- Returns:
- The
Authenticationused for listening for events on the channel.
-
getAuthentication2
public org.springframework.security.core.Authentication getAuthentication2()Get theAuthenticationused for listening for events on the channel.Override to restrict. Default is
ACL.SYSTEM2.- Returns:
- The
Authenticationused for listening for events on the channel.
-
getEventFilter
Get the event filter to be used for messages on the channel.Override this method to define an
EventFilterinstance. Default isnulli.e. no filtering.- Returns:
- The
EventFilterinstance.
-
getAuthentication2()instead.