mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 19:25:51 +00:00
PeerGroup: Remove deprecated awaitRunning() and awaitTerminated().
This commit is contained in:
parent
648655da99
commit
6764430b5b
@ -1074,12 +1074,6 @@ public class PeerGroup implements TransactionBroadcaster {
|
||||
Futures.getUnchecked(startAsync());
|
||||
}
|
||||
|
||||
/** Can just use start() for a blocking start here instead of startAsync/awaitRunning: PeerGroup is no longer a Guava service. */
|
||||
@Deprecated
|
||||
public void awaitRunning() {
|
||||
waitForJobQueue();
|
||||
}
|
||||
|
||||
public ListenableFuture stopAsync() {
|
||||
checkState(vRunning);
|
||||
vRunning = false;
|
||||
@ -1116,16 +1110,6 @@ public class PeerGroup implements TransactionBroadcaster {
|
||||
}
|
||||
}
|
||||
|
||||
/** Can just use stop() here instead of stopAsync/awaitTerminated: PeerGroup is no longer a Guava service. */
|
||||
@Deprecated
|
||||
public void awaitTerminated() {
|
||||
try {
|
||||
executor.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Link the given wallet to this PeerGroup. This is used for three purposes:</p>
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user