MCPcopy Create free account
hub / github.com/apache/kafka / Time

Interface Time

clients/src/main/java/org/apache/kafka/common/utils/Time.java:22–39  ·  view source on GitHub ↗

An interface abstracting the clock to use in unit testing classes that make use of clock time

Source from the content-addressed store, hash-verified

20 * An interface abstracting the clock to use in unit testing classes that make use of clock time
21 */
22public interface Time {
23
24 /**
25 * The current time in milliseconds
26 */
27 public long milliseconds();
28
29 /**
30 * The current time in nanoseconds
31 */
32 public long nanoseconds();
33
34 /**
35 * Sleep for the given number of milliseconds
36 */
37 public void sleep(long ms);
38
39}

Callers 19

testEventWindowingMethod · 0.65
testTimeWindowingMethod · 0.65
setupMethod · 0.65
testSendToUnreadyNodeMethod · 0.65
awaitReadyMethod · 0.65
runMethod · 0.65
pollMethod · 0.65
allocateMethod · 0.65
start_zookeepersFunction · 0.65

Implementers 2

MockTimeclients/src/test/java/org/apache/kafka
SystemTimeclients/src/main/java/org/apache/kafka

Calls

no outgoing calls

Tested by

no test coverage detected