|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.util.enum.BaseEnum | +--org.sape.carbon.services.threadpool.QueueFullPolicyEnum
This Class enumerates the different policies that can be used when the thread pool queue is full and a client attempts to queue a task. Copyright 2003 Sapient
Nested Class Summary | |
static class |
QueueFullPolicyEnum.QueueFullPolicyEnumNotFoundException
This class is a typesafe retriever exception for an enumeration |
Nested classes inherited from class org.sape.carbon.core.util.enum.BaseEnum |
|
Field Summary | |
static QueueFullPolicyEnum |
ABORT
Abort signals ThreadPool to throw a RuntimeException. |
static int |
ABORT_ORDINAL
|
static QueueFullPolicyEnum |
DISCARD
Discard signals the ThreadPool to discard the current task. |
static QueueFullPolicyEnum |
DISCARD_OLDEST
Discard-oldest signals the ThreadPool to discard the task at the head of the queue. |
static int |
DISCARD_OLDEST_ORDINAL
|
static int |
DISCARD_ORDINAL
|
static QueueFullPolicyEnum |
RUN
Run signals that the ThreadPool should run the given task on client thread (i.e. |
static int |
RUN_ORDINAL
|
static QueueFullPolicyEnum |
WAIT
Wait signals that the ThreadPool should block the client thread (i.e. |
static int |
WAIT_ORDINAL
|
Fields inherited from class org.sape.carbon.core.util.enum.BaseEnum |
name, ordinal |
Constructor Summary | |
private |
QueueFullPolicyEnum(String name,
int ordinal)
|
Method Summary | |
static TaskStatusEnum |
getByName(String name)
Strongly typed enum retriever |
static TaskStatusEnum |
getByOrdinal(int ordinal)
Strongly typed enum retriever |
(package private) Object |
readResolve()
Overrides part of serialization to return a reference to an existing static Enumeration |
Methods inherited from class org.sape.carbon.core.util.enum.BaseEnum |
equals, getByName, getByOrdinal, getName, getOrdinal, hashCode, iterator, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int RUN_ORDINAL
public static final QueueFullPolicyEnum RUN
public static final int WAIT_ORDINAL
public static final QueueFullPolicyEnum WAIT
public static final int ABORT_ORDINAL
public static final QueueFullPolicyEnum ABORT
public static final int DISCARD_ORDINAL
public static final QueueFullPolicyEnum DISCARD
public static final int DISCARD_OLDEST_ORDINAL
public static final QueueFullPolicyEnum DISCARD_OLDEST
Constructor Detail |
private QueueFullPolicyEnum(String name, int ordinal)
Method Detail |
public static final TaskStatusEnum getByName(String name) throws QueueFullPolicyEnum.QueueFullPolicyEnumNotFoundException
QueueFullPolicyEnum.QueueFullPolicyEnumNotFoundException
public static final TaskStatusEnum getByOrdinal(int ordinal) throws QueueFullPolicyEnum.QueueFullPolicyEnumNotFoundException
QueueFullPolicyEnum.QueueFullPolicyEnumNotFoundException
final Object readResolve() throws ObjectStreamException
ObjectStreamException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |