Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ public AkkaServerless registerValueEntity(
}

/**
* Experimental API: Register a view.
* Experimental API: Register a view that has `transform_updates=false` set, so it can be handled
* by the proxy.
*
* @param descriptor The descriptor of the view.
* @param viewId The id of this view, used for persistence.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ final class ViewsImpl(system: ActorSystem, _services: Map[String, ViewService],
case Some(service: ViewService) =>
if (!service.factory.isPresent)
throw new IllegalArgumentException(
s"Unexpected call to service [${receiveEvent.serviceName}] with viewId [${service.viewId}]."
s"Unexpected call to service [${receiveEvent.serviceName}] with viewId [${service.viewId}]: " +
"this view has `transform_updates=false` set, so updates should be handled entirely by the proxy " +
"and not reach the user function"
)

val handler = service.factory.get.create(new ViewContextImpl(service.viewId))
Expand Down