Class HttpSessionInstanceResolver<T>


  • public class HttpSessionInstanceResolver<T>
    extends AbstractMultiInstanceResolver<T>
    Instance resolver that ties a service instance per HttpSession. TODO: how do we dispose instances?
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • HttpSessionInstanceResolver

        public HttpSessionInstanceResolver​(@NotNull
                                           Class<T> clazz)
    • Method Detail

      • resolve

        @NotNull
        public T resolve​(Packet request)
        Description copied from class: InstanceResolver
        Decides which instance of 'T' serves the given request message.

        This method is called concurrently by multiple threads. It is also on a criticail path that affects the performance. A good implementation should try to avoid any synchronization, and should minimize the amount of work as much as possible.

        Specified by:
        resolve in class InstanceResolver<T>
        Parameters:
        request - Always non-null. Represents the request message to be served. The caller may not consume the Message.