Class FastPathRouterImpl
java.lang.Object
dev.relism.flash.routing.AbstractRouter
dev.relism.flash.routing.routers.fastpathrouter.FastPathRouterImpl
Router backed by the
fpr-core byte-level state machine. Routes are compiled lazily
on the first request and recompiled when routes are added after startup. Matching runs on a
virtual METHOD + path byte sequence in a single pass; MatchResult and
FastPathViews.MethodPathByteView are reused per-thread to avoid hot-path allocations.-
Nested Class Summary
Nested classes/interfaces inherited from class dev.relism.flash.routing.AbstractRouter
AbstractRouter.ExceptionHandler -
Field Summary
Fields inherited from class dev.relism.flash.routing.AbstractRouter
exceptionHandler, notFoundHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractRouteraddRoute(HttpMethod method, String path, RequestHandler handler) Methods inherited from class dev.relism.flash.routing.AbstractRouter
doRegister, getExceptionHandler, getNotFoundHandler, onException, onNotFound, setPathParams
-
Constructor Details
-
FastPathRouterImpl
public FastPathRouterImpl()
-
-
Method Details
-
addRoute
- Specified by:
addRoutein classAbstractRouter
-
route
- Specified by:
routein classAbstractRouter
-