Skip to content

Commit

Permalink
Creating PreIngestionLambda Interface (#398)
Browse files Browse the repository at this point in the history
* Initial commit

* Added proto

* Fixed enum

* Using pdl

* Addressed 1 comment

* Added POJO

* Addressed more comments

* Fixed checkstyle error

* Added @builder

* Final interface decision

* Revert "Final interface decision"

This reverts commit b32bd1c.

* Include Skip and Proceed

* Removed unused import

* Final

* java doc

---------

Co-authored-by: Rakhi Agrawal <[email protected]>
  • Loading branch information
rakhiagr and Rakhi Agrawal authored Aug 23, 2024
1 parent d1c8295 commit 3586e4d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dao-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies {
compile externalDependency.javatuples
compile externalDependency.reflections
compile externalDependency.commonsLang

implementation 'com.google.protobuf:protobuf-java:3.21.1'
dataModel project(':core-models')
dataModel project(':validators')

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.linkedin.metadata.dao.ingestion;

import com.google.protobuf.Message;


/**
* An interface that defines methods to route update requests to the appropriate custom APIs.
*/

public interface PreUpdateRoutingClient<ASPECT extends Message> {
/**
* A method that routes the update request to the appropriate custom API.
* @param urn the urn of the asset
* @param aspect the aspect to be updated
* @return the updated aspect
* @throws Exception if the routing fails
*/
ASPECT routingLambda(Message urn, ASPECT aspect) throws Exception;
}

0 comments on commit 3586e4d

Please sign in to comment.