Add a warning about SingleThreadEventExecutor.pendingTasks() operation

This commit is contained in:
Norman Maurer 2013-04-09 12:50:29 +02:00
parent 0efebd5a82
commit da174f4290

View File

@ -262,6 +262,9 @@ public abstract class SingleThreadEventExecutor extends AbstractEventExecutor {
/**
* Return the number of tasks that are pending for processing.
*
* <strong>Be aware that this operation may be expensive as it depends on the internal implementation of the
* SingleThreadEventExecutor. So use it was care!</strong>
*/
public final int pendingTasks() {
return taskQueue.size();