Add settable timeouts to Java API
remove unused class