Interface StompEndpointRegistry
- All Known Implementing Classes:
WebMvcStompEndpointRegistry
public interface StompEndpointRegistry
A contract for registering STOMP over WebSocket endpoints.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionaddEndpoint(String... paths) Register a STOMP over WebSocket endpoint at the given mapping path.setErrorHandler(StompSubProtocolErrorHandler errorHandler) Configure a handler for customizing or handling STOMP ERROR frames to clients.voidsetOrder(int order) Set the order of theHandlerMappingused for STOMP endpoints relative to other Spring MVC handler mappings.setPreserveReceiveOrder(boolean preserveReceiveOrder) Whether to handle client messages sequentially in the order in which they were received.voidsetUrlPathHelper(UrlPathHelper urlPathHelper) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
addEndpoint
Register a STOMP over WebSocket endpoint at the given mapping path. -
setOrder
void setOrder(int order) Set the order of theHandlerMappingused for STOMP endpoints relative to other Spring MVC handler mappings.By default this is set to 1.
-
setUrlPathHelper
Deprecated, for removal: This API element is subject to removal in a future version.use ofPathMatcherandUrlPathHelperis deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser.Configure a customizedUrlPathHelperfor the STOMP endpointHandlerMapping. -
setErrorHandler
Configure a handler for customizing or handling STOMP ERROR frames to clients.- Parameters:
errorHandler- the error handler- Since:
- 4.2
-
setPreserveReceiveOrder
Whether to handle client messages sequentially in the order in which they were received.By default messages sent to the
"clientInboundChannel"may be handled in parallel and not in the same order as they were received because the channel is backed by a ThreadPoolExecutor that in turn does not guarantee processing in order.When this flag is set to
truemessages within the same session will be sent to the"clientInboundChannel"one at a time in order to preserve the order in which they were received.- Since:
- 6.1
-
PathMatcherandUrlPathHelperis deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser.