Class CoherenceSubscriberException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.oracle.coherence.spring.messaging.exceptions.CoherenceSubscriberException
-
- All Implemented Interfaces:
java.io.Serializable
public class CoherenceSubscriberException extends java.lang.RuntimeException
Exception thrown for subscriber errors.- Since:
- 3.0
- Author:
- Jonathan Knight
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CoherenceSubscriberException(java.lang.String message, java.lang.Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element)
Creates a new exception.CoherenceSubscriberException(java.lang.String message, java.lang.Throwable cause, java.lang.Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element)
Creates a new exception.CoherenceSubscriberException(java.lang.Throwable cause, java.lang.Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element)
Creates a new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<com.tangosol.net.topic.Subscriber.Element<?>>
getElement()
Return the element that was being processed that caused the error.com.tangosol.net.topic.Subscriber<?>
getKafkaConsumer()
Return the consumer that produced the error.java.lang.Object
getKafkaListener()
Return The bean that is the kafka listener.
-
-
-
Constructor Detail
-
CoherenceSubscriberException
public CoherenceSubscriberException(java.lang.String message, java.lang.Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element)
Creates a new exception.- Parameters:
message
- the messagelistener
- the listenerkafkaConsumer
- the consumerelement
- the consumer record
-
CoherenceSubscriberException
public CoherenceSubscriberException(java.lang.String message, java.lang.Throwable cause, java.lang.Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element)
Creates a new exception.- Parameters:
message
- the messagecause
- the causelistener
- the listenerkafkaConsumer
- the consumerelement
- the consumer record
-
CoherenceSubscriberException
public CoherenceSubscriberException(java.lang.Throwable cause, java.lang.Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element)
Creates a new exception.- Parameters:
cause
- the causelistener
- the listenerkafkaConsumer
- the consumerelement
- the consumer record
-
-
Method Detail
-
getKafkaListener
public java.lang.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 java.util.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
-
-