Package com.tenio.core.service
Interface Service
- All Known Subinterfaces:
Controller
,InternalProcessorService
,NettyWebSocketService
,NetworkService
,ScheduleService
,ZeroAcceptor
,ZeroEngine
,ZeroReader
,ZeroSocketService
,ZeroWriter
- All Known Implementing Classes:
AbstractController
,AbstractZeroEngine
,InternalProcessorServiceImpl
,JettyHttpService
,NettyWebSocketServiceImpl
,NetworkServiceImpl
,ScheduleServiceImpl
,ZeroAcceptorImpl
,ZeroReaderImpl
,ZeroSocketServiceImpl
,ZeroWriterImpl
public interface Service
All supported APIs that is necessary to form a service.
-
Method Details
-
initialize
Initializes a new service.- Throws:
ServiceRuntimeException
- when something went wrong
-
start
Start the service.- Throws:
ServiceRuntimeException
- when something went wrong
-
shutdown
void shutdown()Shutdown the service. -
isActivated
boolean isActivated()Determines whether the service is activated.- Returns:
true
if the service is activated,false
otherwise
-
getName
String getName()Retrieves the service's name.- Returns:
- the
String
service's name
-
setName
Set the service's name.- Parameters:
name
- theString
service's name
-