@groovy.transform.CompileStatic class GroovyShellEndpoint extends MoquiAbstractEndpoint
| Modifiers | Name | Description |
|---|---|---|
static class |
GroovyShellEndpoint.WsWriter |
| Fields inherited from class | Fields |
|---|---|
class MoquiAbstractEndpoint |
destroyInitialEci, ecfi, handshakeRequest, httpSession, session, userId, username |
| Type | Name and description |
|---|---|
boolean |
closing |
ExecutionContextImpl |
eci |
java.util.concurrent.ScheduledFuture<?> |
evalTimeoutTask |
java.util.concurrent.ExecutorService |
exec |
groovy.lang.GroovyShell |
groovyShell |
java.util.concurrent.ScheduledFuture<?> |
idleTask |
java.util.concurrent.ScheduledExecutorService |
scheduler |
| Constructor and description |
|---|
GroovyShellEndpoint() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
cancelEvalTimeout() |
|
void |
checkSend(java.lang.String text) |
|
void |
deregisterEci()Remove the ExecutionContext from the executor thread after evaluation to avoid leaking it to the next task on the same thread. |
|
void |
onClose(javax.jcr.Session session, jakarta.websocket.CloseReason closeReason) |
|
void |
onMessage(java.lang.String message) |
|
void |
onOpen(javax.jcr.Session session, jakarta.websocket.EndpointConfig config) |
|
void |
registerEci()Bind this session's ExecutionContext to the current executor thread for the duration of a single Groovy evaluation. |
|
void |
resetIdleTimer() |
|
void |
resumeIdleTimer() |
|
void |
scheduleEvalTimeout() |
|
void |
suspendIdleTimer() |
| Methods inherited from class | Name |
|---|---|
class MoquiAbstractEndpoint |
getEcf, getHttpSession, getSession, getUserId, getUsername, onClose, onError, onMessage, onOpen |
Remove the ExecutionContext from the executor thread after evaluation to avoid leaking it to the next task on the same thread.
Bind this session's ExecutionContext to the current executor thread for the duration of a single Groovy evaluation.
Groovy Documentation