Package com.smartfoxserver.v2.extensions
Interface IServerEventHandler
-
- All Known Implementing Classes:
BaseServerEventHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IServerEventHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SFSExtensiongetParentExtension()Obtain a reference to the parent extension.voidhandleServerEvent(ISFSEvent event)Handle a server side eventdefault voidsetParentExtension(SFSExtension ext)
-
-
-
Method Detail
-
handleServerEvent
void handleServerEvent(ISFSEvent event) throws SFSException
Handle a server side event- Parameters:
event- the Event- Throws:
SFSException- See Also:
SFSEvent,SFSEventParam
-
setParentExtension
default void setParentExtension(SFSExtension ext)
-
getParentExtension
default SFSExtension getParentExtension()
Obtain a reference to the parent extension.- Returns:
- a reference to the parent extension
-
-