Class CoreLifecycleAdapter
java.lang.Object
com.biglybt.core.CoreLifecycleAdapter
- All Implemented Interfaces:
CoreLifecycleListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomponentCreated(Core core, CoreComponent component) booleanhack - original semantics of the "started" event was that all plugins init complete However, some can take a long time (and even block if attempting to acquire, say, public IP address and version server is down...) so added this flag to allow listeners to indicate that they're happy to be "started" before plugin init completebooleanrestartRequested(Core core) voidvoidvoidbooleanstopRequested(Core core) return true if the request has been accepted (and hence the listener will arrange for a stop to occurbooleanSome listeners must be invoked on the same thread that initiates a core closedown.
-
Constructor Details
-
CoreLifecycleAdapter
public CoreLifecycleAdapter()
-
-
Method Details
-
componentCreated
- Specified by:
componentCreatedin interfaceCoreLifecycleListener
-
started
- Specified by:
startedin interfaceCoreLifecycleListener
-
stopping
- Specified by:
stoppingin interfaceCoreLifecycleListener
-
stopped
- Specified by:
stoppedin interfaceCoreLifecycleListener
-
stopRequested
Description copied from interface:CoreLifecycleListenerreturn true if the request has been accepted (and hence the listener will arrange for a stop to occur- Specified by:
stopRequestedin interfaceCoreLifecycleListener- Parameters:
core-- Returns:
- Throws:
CoreException
-
restartRequested
- Specified by:
restartRequestedin interfaceCoreLifecycleListener- Throws:
CoreException
-
syncInvokeRequired
public boolean syncInvokeRequired()Description copied from interface:CoreLifecycleListenerSome listeners must be invoked on the same thread that initiates a core closedown. In particular the show-alerts-raised-during-closedown logic requires that it is invoked on the com.biglybt.ui.swt thread that initiated the closedown.- Specified by:
syncInvokeRequiredin interfaceCoreLifecycleListener- Returns:
-
requiresPluginInitCompleteBeforeStartedEvent
public boolean requiresPluginInitCompleteBeforeStartedEvent()Description copied from interface:CoreLifecycleListenerhack - original semantics of the "started" event was that all plugins init complete However, some can take a long time (and even block if attempting to acquire, say, public IP address and version server is down...) so added this flag to allow listeners to indicate that they're happy to be "started" before plugin init complete- Specified by:
requiresPluginInitCompleteBeforeStartedEventin interfaceCoreLifecycleListener- Returns:
-