public class RestServer extends AbstractProtocolServer<RestServerConfiguration>
cacheManager, configuration, transport
Constructor and Description |
---|
RestServer() |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelInboundHandler |
getDecoder()
Gets the decoder for this protocol server.
|
io.netty.channel.ChannelOutboundHandler |
getEncoder()
Gets the encoder for this protocol server.
|
io.netty.channel.ChannelInitializer<io.netty.channel.Channel> |
getInitializer()
Returns a pipeline factory
|
RestChannelInitializer |
getRestChannelInitializer()
Returns Netty Channel Initializer for REST.
|
int |
getWorkerThreads() |
void |
setAuthenticator(Authenticator authenticator)
Sets Authentication mechanism.
|
protected void |
startInternal(RestServerConfiguration configuration,
EmbeddedCacheManager cacheManager) |
void |
stop()
Stops the server
|
getCacheManager, getConfiguration, getExecutor, getHost, getPort, getQualifiedName, getTransport, isTransportEnabled, registerServerMBeans, start, startDefaultCache, startTransport, unregisterServerMBeans
ignoreCache, isCacheIgnored, setIgnoredCaches, unignore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ignoreCache, isCacheIgnored, setIgnoredCaches, unignore
public io.netty.channel.ChannelOutboundHandler getEncoder()
ProtocolServer
public io.netty.channel.ChannelInboundHandler getDecoder()
ProtocolServer
public io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer()
ProtocolServer
public RestChannelInitializer getRestChannelInitializer()
public void setAuthenticator(Authenticator authenticator)
authenticator
- Authenticator
instance.public void stop()
ProtocolServer
stop
in interface ProtocolServer<RestServerConfiguration>
stop
in class AbstractProtocolServer<RestServerConfiguration>
protected void startInternal(RestServerConfiguration configuration, EmbeddedCacheManager cacheManager)
startInternal
in class AbstractProtocolServer<RestServerConfiguration>
public int getWorkerThreads()
getWorkerThreads
in class AbstractProtocolServer<RestServerConfiguration>
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.