public final class MarlinProducerResultImpl
extends java.lang.Object
implements com.mapr.fs.jni.MarlinProducerResult
| Constructor and Description |
|---|
MarlinProducerResultImpl(java.lang.String topic,
int feed,
org.apache.kafka.clients.producer.Callback callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Await the completion of this request
|
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit)
Await the completion of this request (up to the given time interval)
|
org.apache.kafka.clients.producer.Callback |
callback() |
boolean |
completed()
Has the request completed?
|
void |
done(int feedid,
long offset,
java.lang.Exception error) |
java.lang.Exception |
error()
The error thrown (generally on the server) while processing this request
|
int |
getFeed() |
org.apache.kafka.clients.producer.RecordMetadata |
getRecordMetadata() |
java.lang.String |
getTopic() |
long |
offset()
The base offset for the request (the first offset in the record set)
|
void |
onCompletion() |
public MarlinProducerResultImpl(java.lang.String topic,
int feed,
org.apache.kafka.clients.producer.Callback callback)
public void done(int feedid,
long offset,
java.lang.Exception error)
done in interface com.mapr.fs.jni.MarlinProducerResultpublic java.lang.String getTopic()
public int getFeed()
public org.apache.kafka.clients.producer.RecordMetadata getRecordMetadata()
public void await()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean await(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
timeout - The maximum time to waitunit - The unit for the max timejava.lang.InterruptedExceptionpublic boolean completed()
public long offset()
public java.lang.Exception error()
public org.apache.kafka.clients.producer.Callback callback()
public void onCompletion()
onCompletion in interface com.mapr.fs.jni.MarlinProducerResult