Package io.undertow.server
Interface OpenListener
public interface OpenListener
Interface that represents an open listener, aka a connector.
- Author:
- Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidClose all active connections that were handled by this listenerio.netty.buffer.ByteBufAllocatorvoidsetRootHandler(HttpHandler rootHandler) Sets the root handlervoidsetUndertowOptions(UndertowOptionMap undertowOptions)
-
Method Details
-
getRootHandler
HttpHandler getRootHandler()- Returns:
- The first handler that will be executed by requests on the connector
-
setRootHandler
Sets the root handler- Parameters:
rootHandler- The new root handler
-
getUndertowOptions
UndertowOptionMap getUndertowOptions()- Returns:
- The connector options
-
setUndertowOptions
- Parameters:
undertowOptions- The connector options
-
getBufferPool
io.netty.buffer.ByteBufAllocator getBufferPool()- Returns:
- The buffer pool in use by this connector
-
getConnectorStatistics
ConnectorStatistics getConnectorStatistics()- Returns:
- The connector statistics, or null if statistics gathering is disabled.
-
closeConnections
default void closeConnections()Close all active connections that were handled by this listener
-