You can buy this project and download/modify it how often you want.
package com.lmax.disruptor; public interface TimeoutHandler { void onTimeout(long sequence) throws Exception; }