Package com.jme3.network.service
Interface Service<S>
- All Known Subinterfaces:
ClientService
,HostedService
- All Known Implementing Classes:
AbstractClientService
,AbstractHostedConnectionService
,AbstractHostedService
,AbstractService
,ClientSerializerRegistrationsService
,RmiClientService
,RmiHostedService
,RpcClientService
,RpcHostedService
,ServerSerializerRegistrationsService
public interface Service<S>
The base interface for managed services.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(S serviceManager) Called when the service is first attached to the service manager.void
start()
Called when the service manager is started or if the service is added to an already started service manager.void
stop()
Called when the service manager is shutting down.void
The service manager is fully shutting down.
-
Method Details
-
initialize
Called when the service is first attached to the service manager. -
start
void start()Called when the service manager is started or if the service is added to an already started service manager. -
stop
void stop()Called when the service manager is shutting down. All services are stopped and any service manager resources are closed before the services are terminated. -
terminate
The service manager is fully shutting down. All services have been stopped and related connections closed.
-