Module org.tentackle.session
Package org.tentackle.session
Interface MasterSerialEventHandlerFactory
- All Known Implementing Classes:
DefaultMasterSerialEventHandlerFactory
public interface MasterSerialEventHandlerFactory
Factory for
MasterSerialEvent
-handlers.- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescription<T extends MasterSerialEvent>
Consumer<T> getEventHandler
(Class<T> eventClass) Gets the event handler for a master serial event class.
The handler is simply aConsumer
of aMasterSerialEvent
and must be stateless.The singleton.
-
Method Details
-
getInstance
The singleton.- Returns:
- the singleton
-
getEventHandler
Gets the event handler for a master serial event class.
The handler is simply aConsumer
of aMasterSerialEvent
and must be stateless. There is only one handler per event type (singleton).- Type Parameters:
T
- the event type- Parameters:
eventClass
- the event class- Returns:
- the event handler, null if there is no handler registered for this remote client
-