public abstract class SCMDecisionHandler extends Object implements ExtensionPoint
Item
instances.ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
SCMDecisionHandler() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<SCMDecisionHandler> |
all()
All registered
SCMDecisionHandler s |
static SCMDecisionHandler |
firstShouldPollVeto(Item item)
|
static List<SCMDecisionHandler> |
listShouldPollVetos(Item item)
|
abstract boolean |
shouldPoll(Item item)
This handler is consulted every time someone tries to run a polling of an
Item . |
public abstract boolean shouldPoll(@NonNull Item item)
Item
.
If any of the registered handlers returns false, the Item
will not be polled.item
- The item.@NonNull public static ExtensionList<SCMDecisionHandler> all()
SCMDecisionHandler
s@CheckForNull public static SCMDecisionHandler firstShouldPollVeto(@NonNull Item item)
item
- the itemnull
if there are no vetos@NonNull public static List<SCMDecisionHandler> listShouldPollVetos(@NonNull Item item)
item
- the itemSCMDecisionHandler
instances vetoing the polling of the specified item.Copyright © 2004–2021. All rights reserved.