[WIP]-39 updates to resolve issue with stopping channel streams.

This commit is contained in:
Denny
2018-04-22 04:44:35 -04:00
parent 7a9f705517
commit e395d737f8
15 changed files with 206 additions and 64 deletions

View File

@@ -56,6 +56,13 @@ public class OverflowableTransferQueue<E>
mResetThreshold = resetThreshold;
}
public void dispose()
{
clear();
mOverflowListener = null;
mSourceOverflowListener = null;
}
/**
* Adds the element to the queue if able to do so without exceeding maximum queue size. Otherwise, ignores
* the element.