Interface Module

All Known Subinterfaces:
EventManager, Scheduler
All Known Implementing Classes:
AtomicScheduler, EventThread, SchedulerThread, SyncEventManager, SyncScheduler

public interface Module
A superinterface for an application's module. Modules are defined as transient container objects which handle the control flow of a certain part of the application's lifecycle.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes this module.
    void
    Interrupts this module, instructing it to stop operating as soon as possible.
    void
    Starts this module, instructing it to start operating.
    void
    Forcefully stops this module, instructing it to interrupt all threads, and stop operating immediately regardless of its current state.
  • Method Details

    • initialize

      void initialize()
      Initializes this module. This is expected to be called before any other method of this module is called.
    • start

      void start()
      Starts this module, instructing it to start operating.
    • interrupt

      void interrupt()
      Interrupts this module, instructing it to stop operating as soon as possible.
    • terminate

      void terminate()
      Forcefully stops this module, instructing it to interrupt all threads, and stop operating immediately regardless of its current state.