Package org.springframework.geode.cache
Class RepositoryAsyncEventListener.AsyncEventError
java.lang.Object
org.springframework.geode.cache.RepositoryAsyncEventListener.AsyncEventError
- Enclosing class:
- RepositoryAsyncEventListener<T,
ID>
RepositoryAsyncEventListener.AsyncEventError
is a wrapper class encapsulating the AsyncEvent
along with
the error
that was thrown while processing the event.- See Also:
-
AsyncEvent
Throwable
-
Constructor Summary
ConstructorDescriptionAsyncEventError
(org.apache.geode.cache.asyncqueue.AsyncEvent<?, ?> event, Throwable cause) Constructs a new instance ofRepositoryAsyncEventListener.AsyncEventError
initialized with the requiredAsyncEvent
andThrowable
thrown while processing the event. -
Method Summary
-
Constructor Details
-
AsyncEventError
public AsyncEventError(@NonNull org.apache.geode.cache.asyncqueue.AsyncEvent<?, ?> event, @NonNull Throwable cause) Constructs a new instance ofRepositoryAsyncEventListener.AsyncEventError
initialized with the requiredAsyncEvent
andThrowable
thrown while processing the event.- Parameters:
event
- processedAsyncEvent
; must not be null.cause
-error
thrown while processing the event; must not be null.- Throws:
IllegalArgumentException
- if theAsyncEvent
or theThrowable
are null.- See Also:
-
AsyncEvent
Throwable
-
-
Method Details
-
getCause
Gets theThrowable
thrown while processing theAsyncEvent
. -
getEvent
@NonNull public org.apache.geode.cache.asyncqueue.AsyncEvent<?,?> getEvent()Gets theAsyncEvent
being processed when theerror
occurred.- Returns:
- the
AsyncEvent
being processed when theerror
occurred. - See Also:
-
AsyncEvent
-
toString
-