public abstract class BulletConnector extends Object implements AutoCloseable, Serializable
BulletDSLConfig.| Modifier and Type | Field and Description |
|---|---|
protected BulletDSLConfig |
config |
| Constructor and Description |
|---|
BulletConnector(com.yahoo.bullet.common.BulletConfig bulletConfig)
Constructor that takes a configuration containing the settings relevant for this connector.
|
| Modifier and Type | Method and Description |
|---|---|
static BulletConnector |
from(BulletDSLConfig config)
Creates a BulletConnector instance using the specified class.
|
abstract void |
initialize()
Initializes the BulletConnector.
|
abstract List<Object> |
read()
Reads and deserializes messages from a data source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected BulletDSLConfig config
public BulletConnector(com.yahoo.bullet.common.BulletConfig bulletConfig)
bulletConfig - The BulletConfig to use.public abstract void initialize()
throws BulletDSLException
BulletDSLException - if there is an initialization error.public abstract List<Object> read() throws BulletDSLException
BulletDSLException - if there is a connection or reading error.public static BulletConnector from(BulletDSLConfig config)
config - The configuration containing the BulletConnector class name and other relevant settings.Copyright © 2021. All rights reserved.