Interface ReactiveAfterLoadCallback<T>
- All Superinterfaces:
EntityCallback<Document>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback being invoked after a
Document
is read from Elasticsearch and before it is converted into a domain
object.- Since:
- 4.4
- Author:
- Peter-Josef Meisch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<Document>
onAfterLoad
(Document document, Class<T> type, IndexCoordinates indexCoordinates) Entity callback method invoked after a domain object is materialized from aDocument
.
-
Method Details
-
onAfterLoad
org.reactivestreams.Publisher<Document> onAfterLoad(Document document, Class<T> type, IndexCoordinates indexCoordinates) Entity callback method invoked after a domain object is materialized from aDocument
. Can return either the same or a modified instance of theDocument
object.- Parameters:
document
- the document.indexCoordinates
- of the index the document was read from.- Returns:
- a possible modified or new
Document
.
-