Package org.infinispan.server.core
Interface ProtocolServer<C extends ProtocolServerConfiguration>
-
- All Superinterfaces:
CacheIgnoreAware
- All Known Implementing Classes:
AbstractProtocolServer
,HotRodServer
,MemcachedServer
,RestServer
public interface ProtocolServer<C extends ProtocolServerConfiguration> extends CacheIgnoreAware
Represents a protocol compliant server.- Since:
- 9.0
- Author:
- Galder ZamarreƱo, wburns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description C
getConfiguration()
Returns the configuration used to start this serverio.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 factoryvoid
start(C configuration, EmbeddedCacheManager cacheManager)
Starts the server backed by the given cache manager and with the corresponding configuration.void
stop()
Stops the server-
Methods inherited from interface org.infinispan.server.core.CacheIgnoreAware
ignoreCache, isCacheIgnored, setIgnoredCaches, unignore
-
-
-
-
Method Detail
-
start
void start(C configuration, EmbeddedCacheManager cacheManager)
Starts the server backed by the given cache manager and with the corresponding configuration.
-
stop
void stop()
Stops the server
-
getEncoder
io.netty.channel.ChannelOutboundHandler getEncoder()
Gets the encoder for this protocol server. The encoder is responsible for writing back common header responses back to client. This method can return null if the server has no encoder. You can find an example of the server that has no encoder in the Memcached server.
-
getDecoder
io.netty.channel.ChannelInboundHandler getDecoder()
Gets the decoder for this protocol server. The decoder is responsible for reading client requests. This method cannot return null.
-
getConfiguration
C getConfiguration()
Returns the configuration used to start this server
-
getInitializer
io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer()
Returns a pipeline factory
-
-