java.lang.Object
com.totvs.tjf.communication.sdk.messages.Fallback

public class Fallback extends Object
Fallback class after timeout sends a message to the specified channel
Author:
mauricio.guntzel
  • Constructor Details

  • Method Details

    • builder

      public static Fallback.FallbackBuilder builder()
    • getChannel

      public FallbackChannel getChannel()
      Channel to send message if timeout has expired
    • getAddress

      public String getAddress()
      address to send message from channel
    • getTimeout

      public long getTimeout()
      Timeout in seconds. Minimum: 60 seconds. If set below, it will default to 60 seconds.
    • getAlternativeContent

      public String getAlternativeContent()
      Optional alternative content send on the fallback message
    • setChannel

      public void setChannel(FallbackChannel channel)
      Channel to send message if timeout has expired
    • setAddress

      public void setAddress(String address)
      address to send message from channel
    • setTimeout

      public void setTimeout(long timeout)
      Timeout in seconds. Minimum: 60 seconds. If set below, it will default to 60 seconds.
    • setAlternativeContent

      public void setAlternativeContent(String alternativeContent)
      Optional alternative content send on the fallback message
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object