Class TimestampedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.kafka.KafkaException
org.springframework.kafka.listener.TimestampedException
All Implemented Interfaces:
Serializable

public class TimestampedException extends KafkaException
A KafkaException that records the timestamp of when it was thrown.
Since:
2.7
See Also:
  • Constructor Details

    • TimestampedException

      public TimestampedException(Exception ex, Clock clock)
    • TimestampedException

      public TimestampedException(Exception ex)
  • Method Details

    • getTimestamp

      public long getTimestamp()