Class RemoteLockRequest
java.lang.Object
org.jenkins.plugins.lockableresources.remote.RemoteLockRequest
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class RemoteLockRequest
extends Object
Lock-semantics payload for the remote lock API.
Corresponds to the
lockRequest field in POST /acquire.
Routing fields (serverId, forcedServerId) are intentionally excluded -
they are transport/configuration concerns, not lock semantics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents an additional resource in a multi-resource lock request. -
Constructor Summary
ConstructorsConstructorDescriptionRemoteLockRequest(String resource, String label, int quantity, String variable, boolean inversePrecedence, String resourceSelectStrategy, boolean skipIfLocked, List<RemoteLockRequest.ExtraResource> extra, int priority, long timeoutForAllocateResource, String timeoutUnit, String reason) -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteLockRequestBuilds aRemoteLockRequestfrom the DSL lock step.getExtra()getLabel()intintlongbooleanboolean
-
Constructor Details
-
RemoteLockRequest
public RemoteLockRequest(@CheckForNull String resource, @CheckForNull String label, int quantity, @CheckForNull String variable, boolean inversePrecedence, @NonNull String resourceSelectStrategy, boolean skipIfLocked, @CheckForNull List<RemoteLockRequest.ExtraResource> extra, int priority, long timeoutForAllocateResource, @NonNull String timeoutUnit, @CheckForNull String reason)
-
-
Method Details
-
getResource
-
getLabel
-
getQuantity
public int getQuantity() -
getVariable
-
isInversePrecedence
public boolean isInversePrecedence() -
getResourceSelectStrategy
-
isSkipIfLocked
public boolean isSkipIfLocked() -
getExtra
-
getPriority
public int getPriority() -
getTimeoutForAllocateResource
public long getTimeoutForAllocateResource() -
getTimeoutUnit
-
getReason
-
from
Builds aRemoteLockRequestfrom the DSL lock step.serverIdis excluded - it is a routing concern, not part of lock semantics.
-