Class TestGenericObjectSink
- java.lang.Object
-
- org.apache.pulsar.tests.integration.io.TestGenericObjectSink
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>
public class TestGenericObjectSink extends java.lang.Object implements org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>
-
-
Constructor Summary
Constructors Constructor Description TestGenericObjectSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidopen(java.util.Map<java.lang.String,java.lang.Object> config, org.apache.pulsar.io.core.SinkContext sourceContext)voidwrite(org.apache.pulsar.functions.api.Record<org.apache.pulsar.client.api.schema.GenericObject> record)
-
-
-
Method Detail
-
open
public void open(java.util.Map<java.lang.String,java.lang.Object> config, org.apache.pulsar.io.core.SinkContext sourceContext) throws java.lang.Exception- Specified by:
openin interfaceorg.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>- Throws:
java.lang.Exception
-
write
public void write(org.apache.pulsar.functions.api.Record<org.apache.pulsar.client.api.schema.GenericObject> record)
- Specified by:
writein interfaceorg.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-