public static final class MemoryTracker.MemoryLease
extends java.lang.Object
Constructor and Description |
---|
MemoryLease(MemoryTracker parent,
long leaseId,
long amount) |
Modifier and Type | Method and Description |
---|---|
long |
leased()
Returns the amount of memory currently leased by this MemoryLease.
|
void |
release()
Release this MemoryLease, returning it back to the pool of available memory in the
MemoryTracker
|
java.lang.String |
toString() |
boolean |
tryExtendLease(long amount)
Attempts to extend the lease by amount additional bytes.
|
public MemoryLease(MemoryTracker parent, long leaseId, long amount)
public void release()
public long leased()
public boolean tryExtendLease(long amount)
public java.lang.String toString()
toString
in class java.lang.Object