Package com.codingchili.core.listener
Interface CoreListener
- All Superinterfaces:
CoreDeployment
- All Known Implementing Classes:
ClusterListener
,RestListener
,TcpListener
,UdpListener
,WebsocketListener
Listeners handles incoming messages and forwards them to a handler.
-
Method Summary
Modifier and TypeMethodDescriptionhandler(CoreHandler handler)
default String
name()
settings(ListenerSettings settings)
Methods inherited from interface com.codingchili.core.listener.CoreDeployment
init, start, stop
-
Method Details
-
settings
- Parameters:
settings
- listener settings for the listener.- Returns:
- fluent
-
handler
- Parameters:
handler
- the handler to invoke when the listener is triggered the handler must be initialized with the current context by the implementing class.- Returns:
- fluent
-
name
- Returns:
- the name of the listener.
-