-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from AxonIQ/feature/aggregate-event-timeout
Throw TimeoutException when loading next even for aggregate takes too long
- Loading branch information
Showing
4 changed files
with
118 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/io/axoniq/axonserver/connector/impl/StreamTimeoutException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package io.axoniq.axonserver.connector.impl; | ||
|
||
/** | ||
* A {@link RuntimeException} to throw if reading from a stream results in a timeout. | ||
* | ||
* @author Mitchell Herrijgers | ||
* @since 4.5.6 | ||
*/ | ||
public class StreamTimeoutException extends RuntimeException { | ||
|
||
/** | ||
* Constructs a new instance of {@link StreamTimeoutException}. | ||
*/ | ||
public StreamTimeoutException() { | ||
} | ||
|
||
/** | ||
* Constructs a new instance of {@link StreamTimeoutException} with a detailed description of the cause of the | ||
* exception | ||
* | ||
* @param message the message describing the cause of the exception. | ||
*/ | ||
public StreamTimeoutException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters