use of org.apache.gobblin.writer.FutureWrappedWriteCallback in project incubator-gobblin by apache.
the class AbstractAsyncDataWriter method write.
/**
* Asynchronously write the record with a callback
*/
@Override
public final Future<WriteResponse> write(D record, @Nullable WriteCallback callback) {
FutureWrappedWriteCallback wrappedWriteCallback = new FutureWrappedWriteCallback(callback);
BufferedRecord<D> bufferedRecord = new BufferedRecord<>(record, wrappedWriteCallback);
put(bufferedRecord);
return wrappedWriteCallback;
}
Aggregations