public class HttpListenerConnectionManager extends Object implements Initialisable, Disposable, MuleContextAware
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_LISTENER_CONNECTION_MANAGER |
static String |
SERVER_ALREADY_EXISTS_FORMAT |
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
HttpListenerConnectionManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsServerFor(ServerAddress serverAddress) |
Server |
createServer(ServerAddress serverAddress,
WorkManagerSource workManagerSource,
boolean usePersistentConnections,
int connectionIdleTimeout) |
Server |
createSslServer(ServerAddress serverAddress,
WorkManagerSource workManagerSource,
TlsContextFactory tlsContext,
boolean usePersistentConnections,
int connectionIdleTimeout) |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
void |
initialise()
Method used to perform any initialisation work.
|
void |
setMuleContext(MuleContext muleContext) |
public static final String HTTP_LISTENER_CONNECTION_MANAGER
public static final String SERVER_ALREADY_EXISTS_FORMAT
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose
in interface Disposable
public void setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
public Server createServer(ServerAddress serverAddress, WorkManagerSource workManagerSource, boolean usePersistentConnections, int connectionIdleTimeout)
public boolean containsServerFor(ServerAddress serverAddress)
public Server createSslServer(ServerAddress serverAddress, WorkManagerSource workManagerSource, TlsContextFactory tlsContext, boolean usePersistentConnections, int connectionIdleTimeout)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.