Executor function ( ) { return new Executor ( ) { @ Override public void execute ( Runnable arg0 ) { MoreExecutors . newThread ( serviceName ( ) , arg0 ) . start ( ) ; } } ; }
returns the executor that will be used to run this service . subclasses may overridethis method to use a custom executor , which may configure its worker thread with a specific name , thread group or priority . the returned executor 's executor #execute runnable execute method is called when this service is started , and shouldreturn promptly . the default implementation returns a new executor that sets the name of its threadsto the string returned by #servicename concode_field_sep Logger logger concode_elem_sep Service delegate concode_field_sep void doStop concode_elem_sep void run concode_elem_sep Throwable failureCause concode_elem_sep String serviceName concode_elem_sep void triggerShutdown concode_elem_sep Service startAsync concode_elem_sep void shutDown concode_elem_sep boolean isRunning concode_elem_sep void startUp concode_elem_sep void doStart concode_elem_sep void awaitTerminated concode_elem_sep void awaitTerminated concode_elem_sep Service stopAsync concode_elem_sep String toString concode_elem_sep String toString concode_elem_sep State state concode_elem_sep void awaitRunning concode_elem_sep void awaitRunning concode_elem_sep void addListener