public <T extends Runnable> LifecycleBinder bindShutdownTaskTo(final Class<T> runnableClass,
                                                                   final int priority) {
        shutdownTaskMapBinder.addBinding(new ShutdownTask(priority))
                .to(runnableClass);
        return this;
    }
Bind the shutdown task with the supplied priority

@param priority Higher value will shutdown later
stroom-lifecycle/stroom-lifecycle-api/src/main/java/stroom/lifecycle/api/LifecycleBinder.java