public class DefaultDisposableInfo extends java.lang.Object implements DisposableInfo
DisposableInfo
implementation.Constructor and Description |
---|
DefaultDisposableInfo(Disposable disposable,
java.lang.StackTraceElement[] stackTrace,
int limit)
Creates a new
DefaultDisposableInfo with the Disposable
and the stack trace of the moment when the disposable was bound to the
DisposableManager . |
Modifier and Type | Method and Description |
---|---|
void |
addStackTrace(java.lang.String label,
java.lang.StackTraceElement[] stackTrace) |
void |
decReferencesCount() |
java.util.List<LabeledValue<java.lang.StackTraceElement[]>> |
getAllStackTrace() |
Disposable |
getDisposable()
Returns the
Disposable whose info belongs to. |
java.lang.StackTraceElement[] |
getFirstBindDisposableStackTrace()
Returns the stack trace of the first moment when the
Disposable was
bound. |
java.lang.String |
getFullDescription() |
int |
getReferencesCount()
Returns the count of references
|
void |
incReferencesCount() |
java.lang.String |
toString() |
public DefaultDisposableInfo(Disposable disposable, java.lang.StackTraceElement[] stackTrace, int limit)
DefaultDisposableInfo
with the Disposable
and the stack trace of the moment when the disposable was bound to the
DisposableManager
.disposable
- to info aboutstackTrace
- stack trace of the moment when the Disposable
was boundlimit
- public java.lang.StackTraceElement[] getFirstBindDisposableStackTrace()
DisposableInfo
Disposable
was
bound.getFirstBindDisposableStackTrace
in interface DisposableInfo
public final void addStackTrace(java.lang.String label, java.lang.StackTraceElement[] stackTrace)
public Disposable getDisposable()
DisposableInfo
Disposable
whose info belongs to.getDisposable
in interface DisposableInfo
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFullDescription()
getFullDescription
in interface DisposableInfo
public void incReferencesCount()
public void decReferencesCount()
public int getReferencesCount()
DisposableInfo
getReferencesCount
in interface DisposableInfo
public java.util.List<LabeledValue<java.lang.StackTraceElement[]>> getAllStackTrace()
getAllStackTrace
in interface DisposableInfo