Class DestinationTopic
- java.lang.Object
-
- org.springframework.kafka.retrytopic.DestinationTopic
-
public class DestinationTopic extends java.lang.Object
Representation of a Destination Topic to which messages can be forwarded, such as retry topics and dlt.- Since:
- 2.7
- Author:
- Tomaz Fernandes, Gary Russell
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DestinationTopic.Properties
-
Constructor Summary
Constructors Constructor Description DestinationTopic(java.lang.String destinationName, DestinationTopic.Properties properties)
DestinationTopic(java.lang.String destinationName, DestinationTopic sourceDestinationtopic, java.lang.String suffix, org.springframework.kafka.retrytopic.DestinationTopic.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Long
getDestinationDelay()
java.lang.String
getDestinationName()
java.lang.Integer
getDestinationPartitions()
long
getDestinationTimeout()
KafkaOperations<?,?>
getKafkaOperations()
int
hashCode()
boolean
isAlwaysRetryOnDltFailure()
boolean
isDltTopic()
boolean
isMainTopic()
boolean
isNoOpsTopic()
boolean
isSingleTopicRetry()
boolean
shouldRetryOn(java.lang.Integer attempt, java.lang.Throwable e)
java.lang.String
toString()
-
-
-
Constructor Detail
-
DestinationTopic
public DestinationTopic(java.lang.String destinationName, DestinationTopic.Properties properties)
-
DestinationTopic
public DestinationTopic(java.lang.String destinationName, DestinationTopic sourceDestinationtopic, java.lang.String suffix, org.springframework.kafka.retrytopic.DestinationTopic.Type type)
-
-
Method Detail
-
getDestinationDelay
public java.lang.Long getDestinationDelay()
-
getDestinationPartitions
public java.lang.Integer getDestinationPartitions()
-
isAlwaysRetryOnDltFailure
public boolean isAlwaysRetryOnDltFailure()
-
isDltTopic
public boolean isDltTopic()
-
isNoOpsTopic
public boolean isNoOpsTopic()
-
isSingleTopicRetry
public boolean isSingleTopicRetry()
-
isMainTopic
public boolean isMainTopic()
-
getDestinationName
public java.lang.String getDestinationName()
-
getKafkaOperations
public KafkaOperations<?,?> getKafkaOperations()
-
shouldRetryOn
public boolean shouldRetryOn(java.lang.Integer attempt, java.lang.Throwable e)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getDestinationTimeout
public long getDestinationTimeout()
-
-