MCPcopy
hub / github.com/OpenTSDB/opentsdb / newTimeout

Method newTimeout

test/core/BaseTsdbTest.java:957–970  ·  view source on GitHub ↗
(final TimerTask task,
                                           final long delay,
                                           final TimeUnit unit)

Source from the content-addressed store, hash-verified

955 public Timeout timeout = null;
956
957 @Override
958 public synchronized Timeout newTimeout(final TimerTask task,
959 final long delay,
960 final TimeUnit unit) {
961 if (pausedTask == null) {
962 pausedTask = task;
963 } else if (newPausedTask == null) {
964 newPausedTask = task;
965 } else {
966 throw new IllegalStateException("Cannot Pause Two Timer Tasks");
967 }
968 timeout = mock(Timeout.class);
969 return timeout;
970 }
971
972 @Override
973 public Set<Timeout> stop() {

Callers 10

ctorNoFileConfiguredMethod · 0.80
ctorFileNoReloadMethod · 0.80
ctorWithFileMethod · 0.80
ctorWithFileExceptionMethod · 0.80
ctorWithFileBadJSONMethod · 0.80
ctorWithFileBadRegexMethod · 0.80
QueryLimitOverrideMethod · 0.80
runMethod · 0.80
processDataPointMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected