|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface RouteInstancePool
When routes are added to RoutingTable as class objects, a route instance must be used
each time to process a HTTP request. This interface controls the lifecycle of those route instances.
RoutesConfiguration.routeInstancePool| Method Summary | |
|---|---|
java.lang.Object |
borrowRouteInstance(java.lang.Class routeClass)
Called when a route match has been made to a method in the given class and an instance is needed to process the request. |
void |
returnRouteInstance(java.lang.Object routeInstance)
The Routes engine is done using this route instance. |
| Method Detail |
|---|
java.lang.Object borrowRouteInstance(java.lang.Class routeClass)
throws RouteInstanceBorrowException
returnRouteInstance).
routeClass - A route class that was added to the RoutingTable.
RouteInstanceBorrowException - If a route instance cannot be borrowed for any reason.void returnRouteInstance(java.lang.Object routeInstance)
routeInstance - A route object previous retrieved from borrowRouteInstance.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||