@groovy.transform.CompileStatic abstract class AotCacheExtension extends java.lang.Object
What an application says about the cache the JDK writes for it.
A cache makes the next start fast at whatever the training run did, so the only thing an application really has to say is which of its pages matter. The rest has an answer that is right far more often than not.
grails {
aotCache {
enabled = true
paths = ['/', '/login', '/user/index']
}
}
| Constructor and description |
|---|
AotCacheExtension() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract Property<java.lang.Boolean> |
getEnabled()Off unless asked for: training runs the application, which is not part of an ordinary build. |
|
abstract ListProperty<java.lang.String> |
getJvmArguments()Given to the training run, and to be given to every run that reads the cache. |
|
abstract ListProperty<java.lang.String> |
getPaths()The paths asked for while training. |
|
abstract Property<java.lang.Integer> |
getPort()Where the training run listens. |
|
abstract Property<java.lang.Integer> |
getStartTimeoutSeconds() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Off unless asked for: training runs the application, which is not part of an ordinary build.
Given to the training run, and to be given to every run that reads the cache. A cache records what it saw, so a run configured differently from the training run reads a cache of a different application.
The paths asked for while training. Empty trains the start alone, which is what
spring.context.exit=onRefresh records and is worth having on its own -- but leaves
every request path to be worked out on the day.
Where the training run listens. Not the port the application is deployed on.