Interface Stoppable<T extends LengthOfTime<T>>

All Superinterfaces:
Operation
All Known Implementing Classes:
BaseLog, BaseTextLog, ConsoleLog, EmailSender, KivaKitThread, RepeatingThread, SmtpEmailSender

public interface Stoppable<T extends LengthOfTime<T>> extends Operation
An operation that can be stopped
Author:
jonathanl (shibo)
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default void
    Stops this task, blocking until the operation is completed
    void
    stop(T wait)
    Stops this task, waiting no more than the given wait time before giving up.

    Methods inherited from interface com.telenav.kivakit.interfaces.lifecycle.Operation

    isRunning
  • Method Details

    • stop

      void stop(T wait)
      Stops this task, waiting no more than the given wait time before giving up.
    • stop

      default void stop()
      Stops this task, blocking until the operation is completed
    • maximumWaitTime

      T maximumWaitTime()