Caches a stream locally in a temporary file. The already cached data
can be read from the session.
Can be canceled, meaning the session is not valid anymore.
Can be aborted, meaning the session will stop caching locally but is
still valid.
The caching operation can be started at any moment, but the session
have to receive the stream info before it can be used with a RemoteSource
instance.
It can recover request failures up to MAX_RESUME_COUNT times.
|
__init__(self,
strategy,
url,
cache_stats,
ifModifiedSince=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
cache(self)
Starts caching the remote resource locally. |
source code
|
|
|
|
|
|
|
|
|
|
|
cancel(self)
After calling this method the session cannot be used anymore. |
source code
|
|
|
abort(self)
After calling this method the session will just stop caching and
return None when trying to read. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
streamNotAvailable(self,
getter,
code,
message) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
Inherited from extern.log.log.Loggable :
__providedBy__ ,
__provides__ ,
debug ,
doLog ,
error ,
info ,
log ,
logFunction ,
logObjectName ,
warning ,
warningFailure ,
writeMarker
|