Class AbstractLazyService

  • All Implemented Interfaces:
    Service, Stateful<LifecycleState>

    public abstract class AbstractLazyService
    extends AbstractDynamicService
    This service lazily creates an Endpoint if needed and reuses it. If no storedEndpoint is currently found, a new one is created and stored - the request is dispatched to it. When subsequent requests come along they are dispatched to the same storedEndpoint. If the storedEndpoint dies for some reason it is cleaned up and a new one is created on the next attempt.
    Michael Nitschinger