public abstract class MemoryLimitedJob
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
initialAllocation |
| Constructor and Description |
|---|
MemoryLimitedJob(long initial) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getPriority()
All memory limited jobs run at LOW_PRIORITY.
|
abstract boolean |
start(MemoryLimitedChunk chunk)
Start the job.
|
public abstract int getPriority()
public abstract boolean start(MemoryLimitedChunk chunk)
chunk - The chunk of the scarce resource that has been allocated for this job. Can
be released but not added to. Initial size is equal to initialAllocation().