mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-22 21:01:00 +02:00
Remove unused method/constructor/fields/constants
Change-Id: I38d77cf30ab9948acd74d24fcc15c65749fc347b
This commit is contained in:
parent
ce49b605d6
commit
559e4b9560
@ -286,28 +286,10 @@ public class IntentManager
|
||||
|
||||
private class IntentBatchPreprocess implements Runnable {
|
||||
|
||||
// TODO make this configurable
|
||||
private static final int TIMEOUT_PER_OP = 500; // ms
|
||||
protected static final int MAX_ATTEMPTS = 3;
|
||||
|
||||
protected final Collection<IntentData> data;
|
||||
|
||||
// future holding current FlowRuleBatch installation result
|
||||
protected final long startTime = System.currentTimeMillis();
|
||||
protected final long endTime;
|
||||
|
||||
private IntentBatchPreprocess(Collection<IntentData> data, long endTime) {
|
||||
IntentBatchPreprocess(Collection<IntentData> data) {
|
||||
this.data = checkNotNull(data);
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public IntentBatchPreprocess(Collection<IntentData> data) {
|
||||
this(data, System.currentTimeMillis() + data.size() * TIMEOUT_PER_OP);
|
||||
}
|
||||
|
||||
// FIXME compute reasonable timeouts
|
||||
protected long calculateTimeoutLimit() {
|
||||
return System.currentTimeMillis() + data.size() * TIMEOUT_PER_OP;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user