Skip to content
Snippets Groups Projects
Commit 7e8c15d1 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Rename methods in FetcherThreads

Rename pauseFetcherThreadsFor() to pauseFor(), etc. No need to repeat the
class name in the method name...
parent 403b5a90
Branches
No related tags found
No related merge requests found
......@@ -100,16 +100,16 @@ public class FetcherThreads
/**
* Pause all Fetcher threads for the specified number of milliseconds.
*/
public void pauseFetcherThreadsFor( final long ms )
public void pauseFor( final long ms )
{
pauseFetcherThreadsUntil( System.currentTimeMillis() + ms );
pauseUntil( System.currentTimeMillis() + ms );
}
/**
* pause all Fetcher threads until the given time (see
* {@link System#currentTimeMillis()}).
*/
public void pauseFetcherThreadsUntil( final long timeMillis )
public void pauseUntil( final long timeMillis )
{
for ( final Fetcher f : fetchers )
f.pauseUntil( timeMillis );
......@@ -117,10 +117,10 @@ public class FetcherThreads
/**
* Wake up all Fetcher threads immediately. This ends any
* {@link #pauseFetcherThreadsFor(long)} and
* {@link #pauseFetcherThreadsUntil(long)} set earlier.
* {@link #pauseFor(long)} and
* {@link #pauseUntil(long)} set earlier.
*/
public void wakeFetcherThreads()
public void wakeUp()
{
for ( final Fetcher f : fetchers )
f.wakeUp();
......
......
......@@ -135,7 +135,7 @@ public class VolatileGlobalCellCache implements CacheControl
// TODO remove on next opportunity (when API is broken anyways...)
public void pauseFetcherThreadsFor( final long ms )
{
fetchers.pauseFetcherThreadsFor( ms );
fetchers.pauseFor( ms );
}
/**
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment