public synchronized void start(final StartContext context) throws StartException { try { context.execute(new Runnable() { @Override public void run() { connectionManagerRegistry.addLdapConnectionManagerService(name, LdapConnectionManagerService.this); context.complete(); } }); } finally { context.asynchronous(); } }
public synchronized void start(final StartContext context) throws StartException { try { context.execute(new Runnable() { @Override public void run() { connectionManagerRegistry.addLdapConnectionManagerService(name, LdapConnectionManagerService.this); context.complete(); } }); } finally { context.asynchronous(); } }
@Override public void start(final StartContext context) throws StartException { context.asynchronous(); context.execute(new Runnable() { public void run() { try { BaseScheduledJob.this.start(); context.complete(); } catch (Exception e) { context.failed( new StartException( e ) ); } } }); }
@Override public void start(final StartContext context) throws StartException { context.asynchronous(); context.execute(new Runnable() { public void run() { try { BaseJobScheduler.this.start(); context.complete(); } catch (Exception e) { context.failed( new StartException( e ) ); } } }); }