public interface IService
| 限定符和类型 | 方法和说明 |
|---|---|
ServiceType |
getID()
Get the name of the the service.
|
default void |
shutdown(long milliseconds) |
void |
start()
Start current service.
|
void |
stop()
Stop current service.
|
default void |
waitAndStop(long milliseconds) |
void start()
throws StartupException
StartupExceptionvoid stop()
default void waitAndStop(long milliseconds)
default void shutdown(long milliseconds)
throws ShutdownException
ServiceType getID()
Copyright © 2022 The Apache Software Foundation. All rights reserved.