public class HelloWorldService implements BridgeJavaService<HelloWorldCallback>, BridgeJavaServiceStartStopInterface {
public void initialize(final HelloWorldCallback callback) {
// initialize service, should not access other components or may cause race conditions
}
public void start() {
// start serving requests. From this point on all components can be freely accessed
}
public void shutDown() {
// stop accepting new requests
}
public void stop() {
// wait for active requests to finish and do some necessary cleanup
}
}