I've just started using clean architecture, It's clean and nice, but I've found a bit confusing use case.
My application should be able to register to update a token after some time, so I handled that by calling a use case that starts a ScheduledExecutorService
in a statically managed object, after the time is met, the executor should be able to call another use case, but the problem is that the managed object (which is from the core logic) will be able to call another use case, so the use case will not be called from entry point as a REStful call, it's however called from an object started by another use case.
So, how can I achieve this in a clean way?