Top Methods
io.netty.util

public Interface ResourceLeakTracker<T>

Known Direct Implementers
io.netty.util.ResourceLeakDetector.DefaultResourceLeak

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if called first time, false if called already
close
(T trackedObject)

Close the leak so that ResourceLeakTracker does not warn about leaked resources.

public void
record()

Records the caller's current stack trace so that the ResourceLeakDetector can tell where the leaked resource was accessed lastly.

public void
record(Object hint)

Records the caller's current stack trace and the specified additional arbitrary information so that the ResourceLeakDetector can tell where the leaked resource was accessed lastly.

Method Detail

closeback to summary
public boolean close(T trackedObject)

Close the leak so that ResourceLeakTracker does not warn about leaked resources. After this method is called a leak associated with this ResourceLeakTracker should not be reported.

Returns:boolean

true if called first time, false if called already

recordback to summary
public void record()

Records the caller's current stack trace so that the ResourceLeakDetector can tell where the leaked resource was accessed lastly. This method is a shortcut to record(null).

recordback to summary
public void record(Object hint)

Records the caller's current stack trace and the specified additional arbitrary information so that the ResourceLeakDetector can tell where the leaked resource was accessed lastly.