org.apache.kafka.clients
Class ClientRequest
java.lang.Object
org.apache.kafka.clients.ClientRequest
public final class ClientRequest
- extends java.lang.Object
A request being sent to the server. This holds both the network send as well as the client-level metadata.
Constructor Summary |
ClientRequest(long createdMs,
boolean expectResponse,
RequestSend request,
java.lang.Object attachment)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClientRequest
public ClientRequest(long createdMs,
boolean expectResponse,
RequestSend request,
java.lang.Object attachment)
- Parameters:
createdMs
- The unix timestamp in milliseconds for the time at which this request was created.expectResponse
- Should we expect a response message or is this request complete once it is sent?request
- The requestattachment
- Associated data with the request
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
expectResponse
public boolean expectResponse()
request
public RequestSend request()
attachment
public java.lang.Object attachment()
createdTime
public long createdTime()