All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enterprisemath.utils.StartStopService Maven / Gradle / Ivy

package com.enterprisemath.utils;

/**
 * Defines functionality of service which can be started and stopped multiple times.
 * Implementations are expected to behave in the following way.
 * 
    *
  • After construction, service is stopped.
  • *
  • After calling start, service is guaranteed to run in the non blocking way, which can or doesn't need to finish.
  • *
  • Calling start when service is running has no effect.
  • *
  • Service is guaranteed to be stopped after successful returning from stop method.
  • *
  • Calling stop when service is stopped has no effect.
  • *
* * @author radek.hecl * */ public interface StartStopService { /** * Starts the service. If service is already running, this method has no effect. */ public void start(); /** * Stops the service. Service is guaranteed to be stopped after returning from this method. */ public void stop(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy