public class TaskNotSubmittedTimeoutException
extends java.util.concurrent.TimeoutException
TimeoutException
. This class is used to indicate a failure in NonStopCacheExecutorService.execute(..) when the task
was not submitted to the executor service at all.Modifier and Type | Field and Description |
---|---|
private int |
submitAttemptCount |
Constructor and Description |
---|
TaskNotSubmittedTimeoutException()
Default constructor
|
TaskNotSubmittedTimeoutException(int submitAttemptCount)
Constructor accepting number of attempts made when this exception happened
|
TaskNotSubmittedTimeoutException(java.lang.String message)
Constructor accepting a message
|
TaskNotSubmittedTimeoutException(java.lang.String message,
int submitAttemptCount)
Constructor accepting message and number of attempts made
|
Modifier and Type | Method and Description |
---|---|
int |
getSubmitAttemptCount()
Getter for submit attempts made.
|
public TaskNotSubmittedTimeoutException()
public TaskNotSubmittedTimeoutException(java.lang.String message)
message
- public TaskNotSubmittedTimeoutException(int submitAttemptCount)
submitAttemptCount
- public TaskNotSubmittedTimeoutException(java.lang.String message, int submitAttemptCount)
submitAttemptCount
-