Package io.pravega.connectors.flink.sink
Class PravegaSink<T>
- java.lang.Object
-
- io.pravega.connectors.flink.sink.PravegaSink<T>
-
- Type Parameters:
T
- The type of the event to be written.
- All Implemented Interfaces:
java.io.Serializable
,org.apache.flink.api.connector.sink2.Sink<T>
- Direct Known Subclasses:
PravegaEventSink
,PravegaTransactionalSink
@Experimental public abstract class PravegaSink<T> extends java.lang.Object implements org.apache.flink.api.connector.sink2.Sink<T>
Pravega Sink writes data into a Pravega stream. It supports all writer mode described byPravegaWriterMode
.For
PravegaWriterMode.ATLEAST_ONCE
andPravegaWriterMode.ATLEAST_ONCE
, aPravegaEventSink
will be returned afterPravegaSinkBuilder.build()
.For
PravegaWriterMode.EXACTLY_ONCE
, aPravegaTransactionalSink
will be returned afterPravegaSinkBuilder.build()
.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> PravegaSinkBuilder<T>
builder()
Gets a builder forPravegaSink
to read Pravega streams using the Flink streaming API.
-
-
-
Method Detail
-
builder
public static <T> PravegaSinkBuilder<T> builder()
Gets a builder forPravegaSink
to read Pravega streams using the Flink streaming API.- Type Parameters:
T
- the element type.- Returns:
- A new builder of
PravegaSink
-
-