/** * Create and configure a Worker object to the list of subresources * * @param key * The key for the Worker resource * @param config * The WorkerConsumer to use * @return this */ @SuppressWarnings("unchecked") public T worker(java.lang.String childKey, WorkerConsumer consumer) { Worker<? extends Worker> child = new Worker<>(childKey); if (consumer != null) { consumer.accept(child); } worker(child); return (T) this; }
/** * Create and configure a Worker object to the list of subresources * * @param key * The key for the Worker resource * @param config * The WorkerConsumer to use * @return this */ @SuppressWarnings("unchecked") public T worker(java.lang.String childKey, WorkerConsumer consumer) { Worker<? extends Worker> child = new Worker<>(childKey); if (consumer != null) { consumer.accept(child); } worker(child); return (T) this; }
public IOFraction applyDefaults() { return worker(new Worker("default")) .bufferPool(new BufferPool("default")); } }
public IOFraction applyDefaults() { return worker(new Worker("default")) .bufferPool(new BufferPool("default")); } }
public static IOFraction createDefaultFraction() { return new IOFraction().worker(new Worker("default")) .bufferPool(new BufferPool("default")); } }
public static IOFraction createDefaultFraction() { return new IOFraction().worker(new Worker("default")) .bufferPool(new BufferPool("default")); } }