def METHOD_NAME(self):
    """
    The next key to be sent.
    :rtype: int
    """
    next_timestamp = self.next_timestamp
    keys = self._buffer[next_timestamp]
    key = keys.pop()
    if not keys:
        del self._buffer[next_timestamp]
        self._current_timestamp_pos += 1
    return key