presto-main/src/main/java/io/prestosql/execution/buffer/OutputBuffer.java/OutputBuffer/addStateChangeListener
class OutputBuffer:    void addStateChangeListener(StateChangeListener<BufferState> stateChangeListener);