mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
Updates PeerGroup's javadoc: PeerGroup is not a guava service as from 27bc229
This commit is contained in:
parent
815c4b9ced
commit
212aa41143
@ -70,13 +70,12 @@ import static com.google.common.base.Preconditions.checkState;
|
|||||||
* <p>The PeerGroup can broadcast a transaction to the currently connected set of peers. It can
|
* <p>The PeerGroup can broadcast a transaction to the currently connected set of peers. It can
|
||||||
* also handle download of the blockchain from peers, restarting the process when peers die.</p>
|
* also handle download of the blockchain from peers, restarting the process when peers die.</p>
|
||||||
*
|
*
|
||||||
* <p>PeerGroup implements the {@link Service} interface. This means before it will do anything,
|
* <p>A PeerGroup won't do anything until you call the {@link PeerGroup#start()} method
|
||||||
* you must call the {@link com.google.common.util.concurrent.Service#start()} method (which returns
|
* which will block until peer discovery is completed and some outbound connections
|
||||||
* a future) or {@link com.google.common.util.concurrent.Service#startAndWait()} method, which will block
|
* have been initiated (it will return before handshaking is done, however).
|
||||||
* until peer discovery is completed and some outbound connections have been initiated (it will return
|
* You should call {@link PeerGroup#stop()} when finished. Note that not all methods
|
||||||
* before handshaking is done, however). You should call {@link com.google.common.util.concurrent.Service#stop()}
|
* of PeerGroup are safe to call from a UI thread as some may do network IO,
|
||||||
* when finished. Note that not all methods of PeerGroup are safe to call from a UI thread as some may do
|
* but starting and stopping the service should be fine.</p>
|
||||||
* network IO, but starting and stopping the service should be fine.</p>
|
|
||||||
*/
|
*/
|
||||||
public class PeerGroup implements TransactionBroadcaster {
|
public class PeerGroup implements TransactionBroadcaster {
|
||||||
private static final Logger log = LoggerFactory.getLogger(PeerGroup.class);
|
private static final Logger log = LoggerFactory.getLogger(PeerGroup.class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user