Public Member Functions | |
def | __init__ |
def | cache_item |
def | enqueue |
def | get_item |
def | run |
def | stop |
Public Attributes | |
item_access | |
items | |
last_accessed | |
listener | |
loader | |
lock | |
max_cache_size | |
queue | |
stop_flag | |
Private Member Functions | |
def | _limit_cache |
def | _update_debug |
def | _update_last_accessed |
Private Attributes | |
_debug_frame | |
_debug_text | |
_debugging |
Definition at line 43 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache.__init__ | ( | self, | |
loader, | |||
listener = None , |
|||
max_cache_size = 100 |
|||
) |
Definition at line 44 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache._limit_cache | ( | self | ) | [private] |
Removes LRU's from cache until size of each topic's cache is <= max_cache_size.
Definition at line 179 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache._update_debug | ( | self | ) | [private] |
Definition at line 199 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache._update_last_accessed | ( | self, | |
topic, | |||
stamp | |||
) | [private] |
Maintains a sorted list of cache accesses by timestamp for each topic.
Definition at line 153 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache.cache_item | ( | self, | |
topic, | |||
t, | |||
item | |||
) |
Definition at line 106 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache.enqueue | ( | self, | |
entry | |||
) |
Definition at line 103 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache.get_item | ( | self, | |
topic, | |||
stamp, | |||
time_threshold | |||
) |
Definition at line 120 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache.run | ( | self | ) |
Definition at line 73 of file timeline_cache.py.
def rxbag.timeline_cache.TimelineCache.stop | ( | self | ) |
Definition at line 195 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.
Definition at line 44 of file timeline_cache.py.