Class Fallback
java.lang.Object
com.totvs.tjf.communication.sdk.messages.Fallback
Fallback class after timeout sends a message to the specified channel
- Author:
- mauricio.guntzel
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFallback()Fallback(FallbackChannel channel, String address, long timeout, String alternativeContent) -
Method Summary
Modifier and TypeMethodDescriptionstatic Fallback.FallbackBuilderbuilder()protected booleanbooleanaddress to send message from channelOptional alternative content send on the fallback messageChannel to send message if timeout has expiredlongTimeout in seconds.inthashCode()voidsetAddress(String address) address to send message from channelvoidsetAlternativeContent(String alternativeContent) Optional alternative content send on the fallback messagevoidsetChannel(FallbackChannel channel) Channel to send message if timeout has expiredvoidsetTimeout(long timeout) Timeout in seconds.toString()
-
Constructor Details
-
Fallback
public Fallback() -
Fallback
@ConstructorProperties({"channel","address","timeout","alternativeContent"}) public Fallback(FallbackChannel channel, String address, long timeout, String alternativeContent)
-
-
Method Details
-
builder
-
getChannel
Channel to send message if timeout has expired -
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
Optional alternative content send on the fallback message -
setChannel
Channel to send message if timeout has expired -
setAddress
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
Optional alternative content send on the fallback message -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-