Class AWSKinesisStreamListener
- java.lang.Object
-
- io.jenkins.plugins.aws.kinesisconsumer.extensions.AWSKinesisStreamListener
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class AWSKinesisStreamListener extends Object implements ExtensionPoint
Extension point to implement by external applications to listen to records coming from a Kinesis stream. The external application has to:- Implement the logic upon record receive by overriding
onReceive(String, byte[])
- Author:
- Fabio Ponciroli
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description AWSKinesisStreamListener()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static void
fireOnReceive(String streamName, byte[] byteRecord)
static ExtensionList<AWSKinesisStreamListener>
getAllRegisteredListeners()
Gets all listeners.abstract void
onReceive(String streamName, byte[] byteRecord)
This needs to be overridden to implement the logic upon record receive
-
-
-
Method Detail
-
onReceive
public abstract void onReceive(String streamName, byte[] byteRecord)
This needs to be overridden to implement the logic upon record receive- Parameters:
streamName
- source AWS Kinesis stream namebyteRecord
- input byte record to process
-
fireOnReceive
public static void fireOnReceive(String streamName, byte[] byteRecord)
-
getAllRegisteredListeners
public static ExtensionList<AWSKinesisStreamListener> getAllRegisteredListeners()
Gets all listeners.- Returns:
- the extension list.
-
-