Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apply plugin: 'maven'
apply plugin: 'signing'

group = 'io.elastic'
version = '2.1.1-SNAPSHOT'
version = '2.2.1-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

sourceCompatibility = 1.8
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/io/elastic/api/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ default JsonObject startup(final JsonObject configuration) {
return Json.createObjectBuilder().build();
}

/**
* Used to initialize the component on flow shutdown.
*
* @since 2.2.0
*
* @param configuration component's configuration
* @return JSON object to be persisted or null
*/
default JsonObject shutdown(final JsonObject configuration) {
return Json.createObjectBuilder().build();
}

/**
* Used to initialize a component before message processing. For polling flows this method
* is called once per scheduled execution. For real-time flows this method is called once on first execution.
Expand Down