|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.kafka.clients.producer.internals.Sender
public class Sender
The background thread that handles the sending of produce requests to the Kafka cluster. This thread makes metadata requests to renew its view of the cluster and then sends produce requests to the appropriate nodes.
Constructor Summary | |
---|---|
Sender(KafkaClient client,
Metadata metadata,
RecordAccumulator accumulator,
int maxRequestSize,
short acks,
int retries,
int requestTimeout,
Metrics metrics,
Time time)
|
Method Summary | |
---|---|
void |
initiateClose()
Start closing the sender (won't actually complete until all data is sent out) |
void |
run()
The main run loop for the sender thread |
void |
run(long now)
Run a single iteration of sending |
void |
wakeup()
Wake up the selector associated with this send thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sender(KafkaClient client, Metadata metadata, RecordAccumulator accumulator, int maxRequestSize, short acks, int retries, int requestTimeout, Metrics metrics, Time time)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void run(long now)
now
- The current POSIX time in millisecondspublic void initiateClose()
public void wakeup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |