org.apache.cassandra.concurrent
Class ContinuationsExecutor.AbortPolicy

java.lang.Object
  extended by org.apache.cassandra.concurrent.ContinuationsExecutor.AbortPolicy
Enclosing class:
ContinuationsExecutor

public static class ContinuationsExecutor.AbortPolicy
extends java.lang.Object

A handler for rejected tasks that throws a RejectedExecutionException.


Constructor Summary
ContinuationsExecutor.AbortPolicy()
          Creates an AbortPolicy.
 
Method Summary
 void rejectedExecution(java.lang.Runnable r, ContinuationsExecutor e)
          Always throws RejectedExecutionException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuationsExecutor.AbortPolicy

public ContinuationsExecutor.AbortPolicy()
Creates an AbortPolicy.

Method Detail

rejectedExecution

public void rejectedExecution(java.lang.Runnable r,
                              ContinuationsExecutor e)
Always throws RejectedExecutionException.

Parameters:
r - the runnable task requested to be executed
e - the executor attempting to execute this task
Throws:
java.util.concurrent.RejectedExecutionException - always.


Copyright © 2009 The Apache Software Foundation