public MavenRepository(File base, String id, List<MavenBackingRepository> release, List<MavenBackingRepository> snapshot, Executor executor, Reporter reporter) throws Exception { this.base = base; this.id = id; if (release != null) this.release.addAll(release); if (snapshot != null) this.snapshot.addAll(snapshot); this.promiseFactory = new PromiseFactory(Objects.requireNonNull(executor)); this.localOnly = this.release.isEmpty() && this.snapshot.isEmpty(); IO.mkdirs(base); }
public MavenRepository(File base, String id, List<MavenBackingRepository> release, List<MavenBackingRepository> snapshot, Executor executor, Reporter reporter) throws Exception { this.base = base; this.id = id; if (release != null) this.release.addAll(release); if (snapshot != null) this.snapshot.addAll(snapshot); this.promiseFactory = new PromiseFactory(Objects.requireNonNull(executor)); this.localOnly = this.release.isEmpty() && this.snapshot.isEmpty(); IO.mkdirs(base); }
public SimplePushEventSourceImpl(PromiseFactory promiseFactory, QueuePolicy<T,U> queuePolicy, U queue, int parallelism, Runnable onClose) { this.promiseFactory = promiseFactory; this.sameThread = new PromiseFactory( PromiseFactory.inlineExecutor(), promiseFactory.scheduledExecutor()); this.queuePolicy = queuePolicy; this.queue = queue; this.parallelism = parallelism; this.semaphore = new Semaphore(parallelism); this.onClose = onClose; this.closed = false; this.connectPromise = null; }
public SimplePushEventSourceImpl(PromiseFactory promiseFactory, QueuePolicy<T,U> queuePolicy, U queue, int parallelism, Runnable onClose) { this.promiseFactory = promiseFactory; this.sameThread = new PromiseFactory( PromiseFactory.inlineExecutor(), promiseFactory.scheduledExecutor()); this.queuePolicy = queuePolicy; this.queue = queue; this.parallelism = parallelism; this.semaphore = new Semaphore(parallelism); this.onClose = onClose; this.closed = false; this.connectPromise = null; }
public FileSetRepository(String name, Collection<File> files) throws Exception { this.name = name; this.files = files; promiseFactory = new PromiseFactory(PromiseFactory.inlineExecutor()); repository = promiseFactory.deferred(); }
public SimplePushEventSourceImpl(PromiseFactory promiseFactory, QueuePolicy<T,U> queuePolicy, U queue, int parallelism, Runnable onClose) { this.promiseFactory = promiseFactory; this.sameThread = new PromiseFactory( PromiseFactory.inlineExecutor(), promiseFactory.scheduledExecutor()); this.queuePolicy = queuePolicy; this.queue = queue; this.parallelism = parallelism; this.semaphore = new Semaphore(parallelism); this.onClose = onClose; this.closed = false; this.connectPromise = null; }
public FileSetRepository(String name, Collection<File> files) throws Exception { this.name = name; this.files = files; promiseFactory = new PromiseFactory(PromiseFactory.inlineExecutor()); repository = promiseFactory.deferred(); }
new PromiseFactory(workerToUse, timerToUse), aec -> { try {
new PromiseFactory(workerToUse, timerToUse), aec -> { try {
new PromiseFactory(workerToUse, timerToUse), aec -> { try {
new PromiseFactory(toUse, acquireScheduler()), queuePolicy, queue, parallelism, () -> {
new PromiseFactory(toUse, acquireScheduler()), queuePolicy, queue, parallelism, () -> {
new PromiseFactory(toUse, acquireScheduler()), queuePolicy, queue, parallelism, () -> {
this, new PromiseFactory(workerToUse, timerToUse), aec -> { return () -> { /* No action to take */ }; }) {
new PromiseFactory(workerToUse, timerToUse), queue, parallelism, queuePolicy, pushbackPolicy, aec -> {
new PromiseFactory(workerToUse, timerToUse), queue, parallelism, queuePolicy, pushbackPolicy, aec -> {
new PromiseFactory(workerToUse, timerToUse), queue, parallelism, queuePolicy, pushbackPolicy, aec -> {
@Override public PushStream<T> fork(int n, int delay, Executor ex) { AbstractPushStreamImpl<T> eventStream = new IntermediatePushStreamImpl<>( psp, new PromiseFactory(Objects.requireNonNull(ex), promiseFactory.scheduledExecutor()), this);
@Override public PushStream<T> fork(int n, int delay, Executor ex) { AbstractPushStreamImpl<T> eventStream = new IntermediatePushStreamImpl<>( psp, new PromiseFactory(Objects.requireNonNull(ex), promiseFactory.scheduledExecutor()), this);
@Override public PushStream<T> fork(int n, int delay, Executor ex) { AbstractPushStreamImpl<T> eventStream = new IntermediatePushStreamImpl<>( psp, new PromiseFactory(Objects.requireNonNull(ex), promiseFactory.scheduledExecutor()), this);