@Public
@Evolving
public abstract class ResourceOption
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
OVER_COMMIT_TIMEOUT_MILLIS_DEFAULT |
Negative value means no timeout.
|
| Constructor | Description |
|---|---|
ResourceOption() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
build() |
|
abstract int |
getOverCommitTimeout() |
Get timeout for tolerant of resource over-commitment
Note: negative value means no timeout so that allocated containers will
keep running until the end even under resource over-commitment cases.
|
abstract Resource |
getResource() |
Get the resource of the ResourceOption.
|
static ResourceOption |
newInstance(Resource resource,
int overCommitTimeout) |
|
protected abstract void |
setOverCommitTimeout(int overCommitTimeout) |
Set the overcommit timeout.
|
protected abstract void |
setResource(Resource resource) |
|
java.lang.String |
toString() |
public static final int OVER_COMMIT_TIMEOUT_MILLIS_DEFAULT
public static ResourceOption newInstance(Resource resource, int overCommitTimeout)
@Private @Evolving public abstract Resource getResource()
@Private @Evolving protected abstract void setResource(Resource resource)
@Private @Evolving public abstract int getOverCommitTimeout()
@Private @Evolving protected abstract void setOverCommitTimeout(int overCommitTimeout)
overCommitTimeout - Timeout in ms. Negative means no timeout.@Private @Evolving protected abstract void build()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.