}
return Collections.unmodifiableCollection(copies);
}
protected void addTransfer(Transfer execution, Abortable abortor) {
transportationPublisher.publishEvent(new TransferEvent(AbstractTransferrer.this, execution));
synchronized (executions) {
if (executions.size() >= maxConnectionSize) {
try {
executions.wait();
} catch (InterruptedException e) {
// ignore
}
}
executions.add(execution);
}
execution.transferring(abortor);
transportationPublisher.publishEvent(new TransferEvent(AbstractTransferrer.this, execution));
}