org.apache.kafka.clients
Class ClientRequest

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.lang.Object attachment()
           
 long createdTime()
           
 boolean expectResponse()
           
 RequestSend request()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 request
attachment - Associated data with the request
Method Detail

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()