Table of Contents

Search

  1. Preface
  2. Introduction to Edge Data Streaming Custom Entity Types
  3. Managing Custom Entity Types
  4. Custom Entities from Maven Archetypes
  5. REST APIs
  6. HTTP Request and Response Parameters
  7. Sample JSON Requests and Responses
  8. Glossary

Developer Guide

Developer Guide

Implementing the VDSConsumptionSource Interface

Implementing the VDSConsumptionSource Interface

Implement the
VDSConsumptionSource
interface to create a custom source service type.
The following sample code shows how to implement the
VDSConsumptionSource
interface:
package ...; import java.io.IOException; import com.informatica.vds.api.VDSConfiguration; import com.informatica.vds.api.VDSConsumptionSource; import com.informatica.vds.api.VDSEventList; public class SampleConsumptionSource implements VDSSource, VDSConsumptionSource { @Override public void open(VDSConfiguration ctx) throws Exception { // TODO Auto-generated method stub } @Override public void read(VDSEventList readEvents) throws Exception { // TODO Auto-generated method stub } @Override public void close() throws IOException { // TODO Auto-generated method stub } @Override public void onVDSEventConsume(Object obj) throws Exception { // TODO Auto-generated method stub } }

0 COMMENTS

We’d like to hear from you!