We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At the moment, its quite hard from Java to access the event-stream. I had to come up with this code to subscribe to events (inside a typed actor):
ClassTag<ScenarioEvent> classTag = ClassTag$.MODULE$.apply(ScenarioEvent.class); ActorRef<ScenarioEvent> scenarioEventToWrapperAdapter = ctx.messageAdapter(ScenarioEvent.class, e -> WrappedScenarioEvent.of(e)); EventStream.Subscribe<ScenarioEvent> subscribe1 = new EventStream.Subscribe(scenarioEventToWrapperAdapter, classTag); ctx.getSystem().eventStream().tell(subscribe1);
Probably the easiest way to get this working would be to provide a EventStream.Subscribe constructor that accepts a Class<T> instead of a ClassTag<T>
Class<T>
ClassTag<T>
provide a simple Java API to do the same.
The text was updated successfully, but these errors were encountered:
Please ignore.. I just found out EventStream.Subscribe has a constructor for java.. don't know how I could not have seen that one.
Sorry, something went wrong.
No branches or pull requests
At the moment, its quite hard from Java to access the event-stream.
I had to come up with this code to subscribe to events (inside a typed actor):
Probably the easiest way to get this working would be to provide a EventStream.Subscribe constructor that accepts a
Class<T>
instead of aClassTag<T>
provide a simple Java API to do the same.
The text was updated successfully, but these errors were encountered: