Infinity.AdoptedSessionReplay¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The filename of the record to play |
||
r |
The replayed session |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Infinity.AdoptedSessionReplay(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Infinity.AdoptedSessionReplay
is an opaque data type. You should only access it via the public API functions.- classmethod new()¶
- Returns:
A new
Infinity.AdoptedSessionReplay
. Free withGObject.Object.unref
() when no longer in use.- Return type:
Creates a new
Infinity.AdoptedSessionReplay
. Use inf_adopted_session_replay_set_record() to start the recording, andInfinity.AdoptedSessionReplay.play_next
() orInfinity.AdoptedSessionReplay.play_to_end
() to play it.
- get_session()¶
- Returns:
- Return type:
Returns the played back session, or
None
if inf_adopted_session_replay_set_record() was not yet called.
- play_next()¶
- Raises:
- Returns:
- Return type:
Reads the next request from the record and passes it to the session. Note that this might do nothing if that request is not yet causally ready, meaning that it depends on another request that has not yet been played. In that case it will be executed as soon as it is ready, that is after some future
Infinity.AdoptedSessionReplay.play_next
() call. Therefore, it is also possible that this function executes more than one request.If an error occurs, then this function returns
False
and error is set. If the end of the recording is reached, then it also returnsFalse
, but error is left untouched. If the next request has been read, then it returnsTrue
.
- play_to_end()¶
- Raises:
- Returns:
- Return type:
Plays all requests that are contained in the recording, so that the replay’s session has the same state as the recorded session when the recording was stopped.
Note that, depending on the size of the record, this function may take some time to finish.
If an error occurs during replay, then the function returns
False
and error is set. Otherwise it returnsTrue
.
Property Details¶
- Infinity.AdoptedSessionReplay.props.filename¶
-
The filename of the record to play
- Infinity.AdoptedSessionReplay.props.session¶
- Name:
session
- Type:
- Default Value:
- Flags:
The replayed session