ehcache

net.sf.ehcache.constructs.nonstop
Class TaskNotSubmittedTimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.util.concurrent.TimeoutException
              extended by net.sf.ehcache.constructs.nonstop.TaskNotSubmittedTimeoutException
All Implemented Interfaces:
Serializable

public class TaskNotSubmittedTimeoutException
extends TimeoutException

Subclass of TimeoutException. This class is used to indicate a failure in NonStopCacheExecutorService.execute(..) when the task was not submitted to the executor service at all.

Author:
Abhishek Sanoujam
See Also:
Serialized Form

Constructor Summary
TaskNotSubmittedTimeoutException()
          Default constructor
TaskNotSubmittedTimeoutException(int submitAttemptCount)
          Constructor accepting number of attempts made when this exception happened
TaskNotSubmittedTimeoutException(String message)
          Constructor accepting a message
TaskNotSubmittedTimeoutException(String message, int submitAttemptCount)
          Constructor accepting message and number of attempts made
 
Method Summary
 int getSubmitAttemptCount()
          Getter for submit attempts made.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskNotSubmittedTimeoutException

public TaskNotSubmittedTimeoutException()
Default constructor


TaskNotSubmittedTimeoutException

public TaskNotSubmittedTimeoutException(String message)
Constructor accepting a message

Parameters:
message -

TaskNotSubmittedTimeoutException

public TaskNotSubmittedTimeoutException(int submitAttemptCount)
Constructor accepting number of attempts made when this exception happened

Parameters:
submitAttemptCount -

TaskNotSubmittedTimeoutException

public TaskNotSubmittedTimeoutException(String message,
                                        int submitAttemptCount)
Constructor accepting message and number of attempts made

Parameters:
submitAttemptCount -
Method Detail

getSubmitAttemptCount

public int getSubmitAttemptCount()
Getter for submit attempts made.

Returns:
number of submit attempts made

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.