public static class RepositoryAsyncEventListener.AsyncEventError
extends java.lang.Object
RepositoryAsyncEventListener.AsyncEventError is a wrapper class encapsulating the AsyncEvent along with
the error that was thrown while processing the event.AsyncEvent,
Throwable| Constructor and Description |
|---|
AsyncEventError(org.apache.geode.cache.asyncqueue.AsyncEvent<?,?> event,
java.lang.Throwable cause)
Constructs a new instance of
RepositoryAsyncEventListener.AsyncEventError initialized with the required AsyncEvent
and Throwable thrown while processing the event. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Gets the
Throwable thrown while processing the AsyncEvent. |
org.apache.geode.cache.asyncqueue.AsyncEvent<?,?> |
getEvent()
Gets the
AsyncEvent being processed when the error occurred. |
java.lang.String |
toString() |
public AsyncEventError(@NonNull
org.apache.geode.cache.asyncqueue.AsyncEvent<?,?> event,
@NonNull
java.lang.Throwable cause)
RepositoryAsyncEventListener.AsyncEventError initialized with the required AsyncEvent
and Throwable thrown while processing the event.event - processed AsyncEvent; must not be null.cause - error thrown while processing the event; must not be null.java.lang.IllegalArgumentException - if the AsyncEvent or the Throwable are null.AsyncEvent,
Throwable@NonNull public java.lang.Throwable getCause()
Throwable thrown while processing the AsyncEvent.Throwable thrown while processing the AsyncEvent.Throwable@NonNull public org.apache.geode.cache.asyncqueue.AsyncEvent<?,?> getEvent()
AsyncEvent being processed when the error occurred.AsyncEvent being processed when the error occurred.AsyncEventpublic java.lang.String toString()
toString in class java.lang.Object