Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/kafka
/ run
Method
run
examples/src/main/java/kafka/examples/Producer.java:40–48 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
}
39
40
public
void
run() {
41
int
messageNo = 1;
42
while
(true)
43
{
44
String messageStr =
new
String(
"Message_"
+ messageNo);
45
producer.send(
new
KeyedMessage<Integer, String>(topic, messageStr));
46
messageNo++;
47
}
48
}
49
50
}
Callers
nothing calls this directly
Calls
1
send
Method · 0.65
Tested by
no test coverage detected