@Internal public class PulsarCommitter extends Object implements Committer<PulsarCommittable>, Closeable
PulsarSink
.
The committer is responsible to finalize the Pulsar transactions by committing them.
Committer.CommitRequest<CommT>
Constructor and Description |
---|
PulsarCommitter(SinkConfiguration sinkConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit(Collection<Committer.CommitRequest<PulsarCommittable>> requests)
Commit the given list of
CommT . |
public PulsarCommitter(SinkConfiguration sinkConfiguration)
public void commit(Collection<Committer.CommitRequest<PulsarCommittable>> requests) throws IOException, InterruptedException
Committer
CommT
.commit
in interface Committer<PulsarCommittable>
requests
- A list of commit requests staged by the sink writer.IOException
- for reasons that may yield a complete restart of the job.InterruptedException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.