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.FallbackBuilder
builder()
protected boolean
boolean
address to send message from channelOptional alternative content send on the fallback messageChannel to send message if timeout has expiredlong
Timeout in seconds.int
hashCode()
void
setAddress
(String address) address to send message from channelvoid
setAlternativeContent
(String alternativeContent) Optional alternative content send on the fallback messagevoid
setChannel
(FallbackChannel channel) Channel to send message if timeout has expiredvoid
setTimeout
(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
-