Create a instance of an route point.
25 def __init__(self, name, callback, statsCallback=None, cleanupCallback=None, isRouter=False):
26 r"""!Create a instance of an route point
27
28 @param name: name of the route point
29 @param callback: instance of the callback function
30 @param statsCallback: instance of the callback to get statistics (None)
31 @param cleanupCallback: instance of the callback to run a cleanup method (None)
32 @param isRouter: True if this route point jumps into another router (type: router).
33 Used by Router._process_route_recursive() to distinguish a
34 sub-router that filtered internally (continue with the parent's
35 next route point) from a module/plugin that explicitly stops
36 the whole route (stop immediately). (False)
37 """
38 self.name = name
39 self.callback = callback
40 self.statistics = statsCallback
41 self.cleanup = cleanupCallback
42 self.isRouter = isRouter