Class TestByteStateSource

java.lang.Object
org.apache.pulsar.tests.integration.io.TestByteStateSource
All Implemented Interfaces:
AutoCloseable, org.apache.pulsar.io.core.Source<byte[]>

public class TestByteStateSource extends Object implements org.apache.pulsar.io.core.Source<byte[]>
  • Field Details

  • Constructor Details

    • TestByteStateSource

      public TestByteStateSource()
  • Method Details

    • open

      public void open(Map<String,Object> config, org.apache.pulsar.io.core.SourceContext sourceContext) throws Exception
      Specified by:
      open in interface org.apache.pulsar.io.core.Source<byte[]>
      Throws:
      Exception
    • read

      public org.apache.pulsar.functions.api.Record<byte[]> read() throws Exception
      Specified by:
      read in interface org.apache.pulsar.io.core.Source<byte[]>
      Throws:
      Exception
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception