MockzillaSharedProcessStateHandler

Reads and writes MockzillaSharedProcessState to a file cache, allowing the Mockzilla server and the management UI to exchange connection details when running on the same device.

Constructors

Link copied to clipboard
constructor(fileIo: FileIo)

Functions

Link copied to clipboard

Returns the most recently written MockzillaSharedProcessState, reading from the file cache if no value has been set in the current process. Returns null if no state has been persisted yet.

Link copied to clipboard

Writes state to both the in-memory cache and the file cache so it is available to other processes reading via getSharedProcessState.