public abstract class AbstractMoleculerServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected services.moleculer.ServiceBroker |
broker |
protected java.util.concurrent.atomic.AtomicReference<org.springframework.context.ConfigurableApplicationContext> |
context |
protected java.util.concurrent.ExecutorService |
executor |
protected ApiGateway |
gateway |
protected java.util.concurrent.ScheduledExecutorService |
scheduler |
protected int |
webSocketCleanupSeconds |
protected ServletWebSocketRegistry |
webSocketRegistry |
| Constructor and Description |
|---|
AbstractMoleculerServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
services.moleculer.ServiceBroker |
getBroker() |
ApiGateway |
getGateway() |
void |
init(javax.servlet.ServletConfig config) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected final java.util.concurrent.atomic.AtomicReference<org.springframework.context.ConfigurableApplicationContext> context
protected services.moleculer.ServiceBroker broker
protected ApiGateway gateway
protected java.util.concurrent.ExecutorService executor
protected java.util.concurrent.ScheduledExecutorService scheduler
protected ServletWebSocketRegistry webSocketRegistry
protected int webSocketCleanupSeconds
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic ApiGateway getGateway()
public services.moleculer.ServiceBroker getBroker()