Is it possible in java to record audio to cyclic memory buffer and poll player gettting info where is head pointer of cyclic buffer?

If this not possible then how to record continiously without time limit?

As i can imagine having 2 recorders cannot solve problem because i cannot start second recorder immediatly after 1st recorder stops - this will cause delay and choppy sound.

So where could be solution?