Causes the currently executing thread to sleep (temporarily cease execution) for the specified
number of milliseconds as specified in Thread#sleep(long).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-13 UTC."],[],[],null,["# Interface Sleeper (2.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0 (latest)](/java/docs/reference/google-http-client/latest/com.google.api.client.util.Sleeper)\n- [1.47.1](/java/docs/reference/google-http-client/1.47.1/com.google.api.client.util.Sleeper)\n- [1.46.3](/java/docs/reference/google-http-client/1.46.3/com.google.api.client.util.Sleeper)\n- [1.45.3](/java/docs/reference/google-http-client/1.45.3/com.google.api.client.util.Sleeper)\n- [1.44.2](/java/docs/reference/google-http-client/1.44.2/com.google.api.client.util.Sleeper)\n- [1.43.2](/java/docs/reference/google-http-client/1.43.2/com.google.api.client.util.Sleeper)\n- [1.42.3](/java/docs/reference/google-http-client/1.42.3/com.google.api.client.util.Sleeper)\n- [1.41.8](/java/docs/reference/google-http-client/1.41.8/com.google.api.client.util.Sleeper) \n\n public interface Sleeper\n\nSleeper interface to use for requesting the current thread to sleep as specified in Thread#sleep(long).\n\nThe default implementation can be accessed at [#DEFAULT](/java/docs/reference/google-http-client/latest/com.google.api.client.util.Sleeper#com_google_api_client_util_Sleeper_DEFAULT). Primarily used for testing.\n\nStatic Fields\n-------------\n\n### DEFAULT\n\n public static final Sleeper DEFAULT\n\nProvides the default implementation based on Thread#sleep(long).\n\nMethods\n-------\n\n### sleep(long millis)\n\n public abstract void sleep(long millis)\n\nCauses the currently executing thread to sleep (temporarily cease execution) for the specified\nnumber of milliseconds as specified in Thread#sleep(long)."]]