Class CoherenceSubscriberException

    • Constructor Detail

      • CoherenceSubscriberException

        public CoherenceSubscriberException​(String message,
                                            Object listener,
                                            com.tangosol.net.topic.Subscriber<?> kafkaConsumer,
                                            com.tangosol.net.topic.Subscriber.Element<?> element)
        Creates a new exception.
        Parameters:
        message - the message
        listener - the listener
        kafkaConsumer - the consumer
        element - the consumer record
      • CoherenceSubscriberException

        public CoherenceSubscriberException​(String message,
                                            Throwable cause,
                                            Object listener,
                                            com.tangosol.net.topic.Subscriber<?> kafkaConsumer,
                                            com.tangosol.net.topic.Subscriber.Element<?> element)
        Creates a new exception.
        Parameters:
        message - the message
        cause - the cause
        listener - the listener
        kafkaConsumer - the consumer
        element - the consumer record
      • CoherenceSubscriberException

        public CoherenceSubscriberException​(Throwable cause,
                                            Object listener,
                                            com.tangosol.net.topic.Subscriber<?> kafkaConsumer,
                                            com.tangosol.net.topic.Subscriber.Element<?> element)
        Creates a new exception.
        Parameters:
        cause - the cause
        listener - the listener
        kafkaConsumer - the consumer
        element - the consumer record
    • Method Detail

      • getKafkaListener

        public Object getKafkaListener()
        Return The bean that is the kafka listener.
        Returns:
        the bean that is the kafka listener
      • getKafkaConsumer

        public com.tangosol.net.topic.Subscriber<?> getKafkaConsumer()
        Return the consumer that produced the error.
        Returns:
        the consumer that produced the error
      • getElement

        public Optional<com.tangosol.net.topic.Subscriber.Element<?>> getElement()
        Return the element that was being processed that caused the error.
        Returns:
        the element that was being processed that caused the error