@Configuration(name="server") @NoImplicit @Sources(value=Listener.class) @Operations(value=ServerOperations.class) public class Server extends Object implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable
| Modifier and Type | Field and Description |
|---|---|
long |
lingerOnShutdown
The linger time (in milliseconds [ms]) on shutdown of the server,
giving notifications time to complete.
|
boolean |
notifyOnShutdown
Notify observing clients of server shutdown.
|
static String |
VARNAME_COAP_EXCHANGE
The name of the CoapExchange variable.
|
static String |
VARNAME_DEFAULT_RESPONSE_CODE
The name of the default response code variable.
|
| Constructor and Description |
|---|
Server() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose of the server.
|
List<AdditionalEndpoint> |
getAdditionalEndpoints() |
ResourceRegistry |
getRegistry() |
List<ResourceConfig> |
getResources() |
org.mule.runtime.api.scheduler.SchedulerConfig |
getSchedulerConfig() |
org.mule.runtime.api.scheduler.SchedulerService |
getSchedulerService() |
String |
getServerName() |
void |
initialise() |
void |
setAdditionalEndpoints(List<AdditionalEndpoint> endpoints) |
void |
setResources(List<ResourceConfig> resources) |
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
String |
toString()
Get String repesentation.
|
public static final String VARNAME_COAP_EXCHANGE
public static final String VARNAME_DEFAULT_RESPONSE_CODE
@Parameter
@Optional(defaultValue="true")
@Summary(value="Notify observing clients of server shutdown. \nWhen true observing clients are notified by Not-Found notifications. \nDefault value is 100 ms.")
@Expression(value=NOT_SUPPORTED)
@ParameterDsl(allowReferences=false)
@DisplayName(value="Notify observing clients on shutdown")
@Placement(order=1,
tab="Advanced")
public boolean notifyOnShutdown
@Parameter
@Optional(defaultValue="250")
@Summary(value="The linger time (in milliseconds [ms]) on shutdown of the server, \ngiving notifications time to complete. \nDefault value is 250 ms.")
@Expression(value=NOT_SUPPORTED)
@ParameterDsl(allowReferences=false)
@Placement(order=2,
tab="Advanced")
public long lingerOnShutdown
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic String getServerName()
public ResourceRegistry getRegistry()
public List<ResourceConfig> getResources()
public void setResources(List<ResourceConfig> resources)
resources - the resources to setpublic List<AdditionalEndpoint> getAdditionalEndpoints()
public void setAdditionalEndpoints(List<AdditionalEndpoint> endpoints)
endpoints - the endpoints references to set.public org.mule.runtime.api.scheduler.SchedulerService getSchedulerService()
public org.mule.runtime.api.scheduler.SchedulerConfig getSchedulerConfig()
Copyright © 2019–2024 Teslanet.nl. All rights reserved.