Interface TinyMailService.StatusHook

  • All Implemented Interfaces:

    
    public interface TinyMailService.StatusHook
    
                        

    hook the sending result (success/failure), and can stop the next send. should not throw exception in the hook.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract boolean stop(@NotNull() WinMailSender po, long cost, Exception exception) hook status, return true will stop mail next send
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • stop

         abstract boolean stop(@NotNull() WinMailSender po, long cost, Exception exception)

        hook status, return true will stop mail next send

        Parameters:
        po - mail info
        cost - send cost
        exception - error if fail
        Returns:

        whether stop next send