n-way ringbuffer structure.