Enum MonitorThreadState

Package: io.keychain.core

public enum MonitorThreadState
extends java.lang.Object

Description

MonitorThreadState is a simple lifecycle for describing the state of the Gateway monitor thread.

Since: v2.0

Enum Class Summary

Enum Constant Description

STARTED

The monitor thread has been created and is ready

RESUMED

The monitor thread has been resumed/started up

PAUSED

The monitor thread has been stopped after at least resuming once

STOPPED

The monitor thread has been stopped completely

Enum Class Detail

STARTED

The thread has been created, but is not yet started. The name of this constant is confusing and will be changed in v3.

RESUMED

The thread is actively running

PAUSED

The thread was running previously but is now temporarily paused. It has not been destroyed and is still capable of restarting

STOPPED

The thread has been told to stop, and further attempts to start it via the same monitor will not be successful. This is guaranteed, whereas with PAUSED the thread can be resumed again.