public interface AsyncRequestDispatcherConfig
Modifier and Type | Method and Description |
---|---|
void |
addThreadLocalToPropagate(java.lang.ThreadLocal threadLocals)
Since the AsynchBeans executes the includes on a non-child thread,
InheritableThreadLocals will not work so a mechanism is provided
to propagate them
|
java.lang.String |
getExecutionTimeoutEncoding()
Return the encoding used for the message displayed if the maximum length of
time for the execution of an include has been reached
|
java.lang.String |
getExecutionTimeoutMessage()
Return the message displayed if the maximum length of time for the execution
of an include is reached.
|
int |
getExecutionTimeoutOverride()
Return the maximum length of time allowed for the execution of an include
|
int |
getExpirationTimeoutOverride()
Retrieve the maximum amount of time results can be in the results store where it is still retrievable by the client.
|
java.lang.String |
getOutputRetrievalFailureEncoding()
Return the encoding used for the message displayed for any error that causes
the output to be unretrievable.
|
java.lang.String |
getOutputRetrievalFailureMessage()
Return the message displayed for any error that causes the output to be
unretrievable.
|
java.lang.String |
getRejectedEncoding()
Returns the encoding used to display the message when work is rejected
|
java.lang.String |
getRejectedMessage()
Return the message displayed when an include is rejected by the work manager
|
java.util.List<java.lang.ThreadLocal> |
getThreadLocalsToPropagate()
Since the AsynchBeans executes the includes on a non-child thread,
InheritableThreadLocals will not work.
|
void |
initThreadLocals()
Since the AsynchBeans executes the includes on a non-child thread,
InheritableThreadLocals will not work.
|
boolean |
isRetriable()
If isRetriable is true, a rejected include will attempt to be executed again.
|
boolean |
isTransferState()
This must be set if the developer needs request attributes and internal headers
returned to the top level request.
|
boolean |
isUseDefaultJavascript()
Returns true when ARD sends the javascript to aggregate the content on the client side.
|
void |
setExecutionTimeoutMessage(java.lang.String message,
java.lang.String encoding)
Set the message displayed if the maximum length of time for the execution
of an include is reached
|
void |
setExecutionTimeoutOverride(int ms)
Set the maximum length of time allowed for the execution of an include.
|
void |
setExpirationTimeoutOverride(int includeTimeout)
Maximum amount of time results can be in the results store where it is still retrievable by the client.
|
void |
setOutputRetrievalFailureMessage(java.lang.String message,
java.lang.String encoding)
Set the message displayed for any error that causes the output to be
unretrievable, such as the result expiring from the results store.
|
void |
setRejectedMessage(java.lang.String rejectedMessage,
java.lang.String rejectedEncoding)
Set the message displayed when an include is rejected by the work manager
|
void |
setRetriable(boolean retriable)
Set whether or not we will retry the include if we've received a rejected work item.
|
void |
setTransferState(boolean state)
Set the value of transfer state.
|
void |
setUseDefaultJavascript(boolean useDefaultJavascript)
sets whether to allow ARD to insert javascript into customer code to retrieve
results for client-side aggregation.
|
void setExpirationTimeoutOverride(int includeTimeout)
includeTimeout
- timeout value in msint getExpirationTimeoutOverride()
void setOutputRetrievalFailureMessage(java.lang.String message, java.lang.String encoding)
message
- custom failure messageencoding
- java.lang.String getOutputRetrievalFailureMessage()
java.lang.String getOutputRetrievalFailureEncoding()
void setExecutionTimeoutOverride(int ms)
ms
- timeout in msvoid setExecutionTimeoutMessage(java.lang.String message, java.lang.String encoding)
message
- custom timeout messageencoding
- java.lang.String getExecutionTimeoutMessage()
int getExecutionTimeoutOverride()
java.lang.String getExecutionTimeoutEncoding()
void setRejectedMessage(java.lang.String rejectedMessage, java.lang.String rejectedEncoding)
rejectedMessage
- custom error messagerejectedEncoding
- encodingjava.lang.String getRejectedMessage()
java.lang.String getRejectedEncoding()
boolean isRetriable()
void setRetriable(boolean retriable)
retriable
- boolean isTransferState()
void setTransferState(boolean state)
state
- boolean isUseDefaultJavascript()
void setUseDefaultJavascript(boolean useDefaultJavascript)
useDefaultJavascript
- void addThreadLocalToPropagate(java.lang.ThreadLocal threadLocals)
threadLocals
- java.util.List<java.lang.ThreadLocal> getThreadLocalsToPropagate()
a
- list of ThreadLocalsvoid initThreadLocals()