Package com.tenio.core.server.service
Class InternalProcessorServiceImpl
java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.core.manager.AbstractManager
com.tenio.core.controller.AbstractController
com.tenio.core.server.service.InternalProcessorServiceImpl
- All Implemented Interfaces:
Controller
,InternalProcessorService
,Service
,ServiceListener
,Runnable
public final class InternalProcessorServiceImpl
extends AbstractController
implements InternalProcessorService
The implementation for the processor service.
- See Also:
-
Field Summary
Fields inherited from class com.tenio.core.manager.AbstractManager
eventManager
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Retrieves the service's name.static InternalProcessorServiceImpl
newInstance
(EventManager eventManager) void
void
void
void
void
void
processRequest
(Request request) Processes a request.void
setKeepPlayerOnDisconnection
(boolean keep) void
setMaxNumberPlayers
(int maxPlayers) void
setPlayerManager
(PlayerManager playerManager) void
Subscribe.Methods inherited from class com.tenio.core.controller.AbstractController
enqueueRequest, getMaxRequestQueueSize, getPercentageUsedRequestQueue, getThreadPoolSize, initialize, isActivated, run, setMaxRequestQueueSize, setName, setThreadPoolSize, shutdown, start
Methods inherited from class com.tenio.common.logger.SystemLogger
debug, trace, trace
Methods inherited from class com.tenio.common.logger.AbstractLogger
buildgen, error, error, info, info, info, info, info, info, info, info
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tenio.core.controller.Controller
enqueueRequest, getMaxRequestQueueSize, getPercentageUsedRequestQueue, getThreadPoolSize, setMaxRequestQueueSize, setThreadPoolSize
Methods inherited from interface com.tenio.core.service.Service
initialize, isActivated, setName, shutdown, start
-
Method Details
-
newInstance
-
subscribe
public void subscribe()Description copied from class:AbstractController
Subscribe.- Specified by:
subscribe
in interfaceInternalProcessorService
- Specified by:
subscribe
in classAbstractController
-
processRequest
Description copied from class:AbstractController
Processes a request.- Specified by:
processRequest
in classAbstractController
- Parameters:
request
- the processing request
-
getName
Description copied from interface:Service
Retrieves the service's name.- Specified by:
getName
in interfaceService
- Overrides:
getName
in classAbstractController
- Returns:
- the service's name
-
setMaxNumberPlayers
public void setMaxNumberPlayers(int maxPlayers) - Specified by:
setMaxNumberPlayers
in interfaceInternalProcessorService
-
setKeepPlayerOnDisconnection
public void setKeepPlayerOnDisconnection(boolean keep) - Specified by:
setKeepPlayerOnDisconnection
in interfaceInternalProcessorService
-
setPlayerManager
- Specified by:
setPlayerManager
in interfaceInternalProcessorService
-
onInitialized
public void onInitialized()- Specified by:
onInitialized
in interfaceServiceListener
-
onStarted
public void onStarted()- Specified by:
onStarted
in interfaceServiceListener
-
onRunning
public void onRunning()- Specified by:
onRunning
in interfaceServiceListener
-
onShutdown
public void onShutdown()- Specified by:
onShutdown
in interfaceServiceListener
-
onDestroyed
public void onDestroyed()- Specified by:
onDestroyed
in interfaceServiceListener
-