ValueBuilder<OnceSchedule> builder = module.newValueBuilder( OnceSchedule.class );
OnceSchedule builderInstance = builder.prototype();
builderInstance.task().set( task );
builderInstance.start().set( runAt );
OnceSchedule schedule = builder.newInstance();
logger.info( "Schedule {} created: {}", schedule.presentationString(), schedule.identity().get() );
return schedule;
}
private Schedule newPersistentOnceSchedule( Task task, DateTime runAt )
{