The goog.Disposable.MonitoringMode Enum

goog.Disposable.MonitoringMode

@enum
{number} Different monitoring modes for Disposable.

.INTERACTIVE

INTERACTIVE mode can be switched on and off on the fly without producing errors. It also doesn't warn if the disposable objects don't call the {@code goog.Disposable} base constructor.

.OFF

No monitoring.

.PERMANENT

Creating and disposing the goog.Disposable instances is monitored. All disposable objects need to call the {@code goog.Disposable} base constructor. The PERMANENT mode must bet switched on before creating any goog.Disposable instances.