Move Service and ComponentOptions to impl.#414
Conversation
73a315f to
fc6ad6f
Compare
| package com.akkaserverless.scalasdk | ||
|
|
||
| //FIXME see if needed | ||
| //FIXME see if needed, maybe should be moved to impl |
There was a problem hiding this comment.
if it is moved to impl we should (also) include withForwardHeaders and forwardHeaders in the more concrete options interfaces, such as EventSourcedEntityOptions
There was a problem hiding this comment.
These interfaces still extend ComponentOptions in impl, so should be good?
03ea38e to
4ba0285
Compare
|
Ok with this @patriknw ? |
| * the headers requested to be forwarded as metadata (cannot be mutated, use withForwardHeaders) | ||
| */ | ||
| Set<String> forwardHeaders(); | ||
| def forwardHeaders(): Set[String] |
There was a problem hiding this comment.
I would be more explicit with that Set type. I see that there is an import java.util.Set above but I'd rather have the full package here, or rename the import to JSet.
| import com.akkaserverless.javasdk.impl.eventsourcedentity.EventSourcedEntityOptionsImpl | ||
|
|
||
| import java.util.Collections; | ||
| import java.util.Set; |
| return new EventSourcedEntityOptionsImpl( | ||
| 0, PassivationStrategy.defaultTimeout(), Collections.emptySet()); | ||
| } | ||
| def withForwardHeaders(headers: Set[String]): ComponentOptions |
There was a problem hiding this comment.
This is public api and it's somewhat hidden (strange) to only have it via impl. We should add override in all that extends ComponentOptions, for example ActionOptions
76a6ea2 to
970ce0a
Compare
Review procesed.
970ce0a to
947b23c
Compare
No description provided.