类 DefaultSockJsService

    • 构造器详细资料

      • DefaultSockJsService

        public DefaultSockJsService​(TaskScheduler scheduler)
        Create a DefaultSockJsService with default handler types.
        参数:
        scheduler - a task scheduler for heart-beat messages and removing timed-out sessions; the provided TaskScheduler should be declared as a Spring bean to ensure it is initialized at start up and shut down when the application stops.
      • DefaultSockJsService

        public DefaultSockJsService​(TaskScheduler scheduler,
                                    TransportHandler... handlerOverrides)
        Create a DefaultSockJsService with overridden handler types replacing the corresponding default handler implementation.
        参数:
        scheduler - a task scheduler for heart-beat messages and removing timed-out sessions; the provided TaskScheduler should be declared as a Spring bean to ensure it gets initialized at start-up and shuts down when the application stops
        handlerOverrides - zero or more overrides to the default transport handler types
      • DefaultSockJsService

        public DefaultSockJsService​(TaskScheduler scheduler,
                                    Collection<TransportHandler> handlerOverrides)
        Create a DefaultSockJsService with overridden handler types replacing the corresponding default handler implementation.
        参数:
        scheduler - a task scheduler for heart-beat messages and removing timed-out sessions; the provided TaskScheduler should be declared as a Spring bean to ensure it gets initialized at start-up and shuts down when the application stops
        handlerOverrides - zero or more overrides to the default transport handler types