Package org.apache.lucene.misc

# Class CollectorMemoryTracker

java.lang.Object
org.apache.lucene.misc.CollectorMemoryTracker

All Implemented Interfaces:
  `MemoryTracker`

public class CollectorMemoryTracker extends Object implements MemoryTracker
Default implementation of `MemoryTracker` that tracks allocations and allows setting a memory limit per collector

## Constructor Summary

Constructors
Constructor
Description
`CollectorMemoryTracker(String name, long memoryLimit)`

## Method Summary

Modifier and Type
Method
Description
`long`
`getBytes()`
`void`
`updateBytes(long bytes)`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Details

### CollectorMemoryTracker

public CollectorMemoryTracker(String name, long memoryLimit)

## Method Details

### updateBytes

public void updateBytes(long bytes)

Specified by:
  `updateBytes` in interface `MemoryTracker`

### getBytes

public long getBytes()

Specified by:
  `getBytes` in interface `MemoryTracker`