Spring Boot for VMware GemFire
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:
-
AsyncEventThrowable
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncEventError(org.apache.geode.cache.asyncqueue.AsyncEvent<?, ?> event, Throwable cause) Constructs a new instance ofRepositoryAsyncEventListener.AsyncEventErrorinitialized with the requiredAsyncEventandThrowablethrown 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.AsyncEventErrorinitialized with the requiredAsyncEventandThrowablethrown while processing the event.- Parameters:
event- processedAsyncEvent; must not be null.cause-errorthrown while processing the event; must not be null.- Throws:
IllegalArgumentException- if theAsyncEventor theThrowableare null.- See Also:
-
AsyncEventThrowable
-
-
Method Details
-
getCause
Gets theThrowablethrown while processing theAsyncEvent. -
getEvent
@NonNull public org.apache.geode.cache.asyncqueue.AsyncEvent<?,?> getEvent()Gets theAsyncEventbeing processed when theerroroccurred.- Returns:
- the
AsyncEventbeing processed when theerroroccurred. - See Also:
-
AsyncEvent
-
toString
-