Skip to content

Commit

Permalink
Add getReservation to Accountant
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthteotia committed Jan 15, 2018
1 parent 707af38 commit 4a661ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ public long getLimit() {
return allocationLimit.get();
}

/**
* Return the initial reservation.
*
* @return reservation in bytes.
*/
public long getInitReservation() {
return reservation;
}

/**
* Set the maximum amount of memory that can be allocated in the this Accountant before failing
* an allocation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ public interface BufferAllocator extends AutoCloseable {
*/
public long getLimit();

/**
* Return the initial reservation.
*
* @return reservation in bytes.
*/
public long getInitReservation();

/**
* Set the maximum amount of memory this allocator is allowed to allocate.
*
Expand Down

0 comments on commit 4a661ed

Please sign in to comment.