Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description | 
|---|---|
| static int | TRON_BLOCK_INTERVAL | 
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description | 
|---|
| TronBlockChainWatcher(TronClient client,
                     long startBlock) | 
| TronBlockChainWatcher(TronClient client,
                     long startBlock,
                     boolean onlyBlocks) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addHandler(TronEventHandler handler)Adds anew event handler. | 
| void | removeHandler(TronEventHandler handler)Removes an event handler. | 
| void | run() | 
| void | startWatching()Starts the watching process. | 
| void | stopWatching()Stop the watching process. | 
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static final int TRON_BLOCK_INTERVAL
public TronBlockChainWatcher(TronClient client, long startBlock)
public TronBlockChainWatcher(TronClient client, long startBlock, boolean onlyBlocks)
public void addHandler(TronEventHandler handler)
handler - The event handler.public void removeHandler(TronEventHandler handler)
handler - The event handler.public void startWatching()
public void stopWatching()
Copyright © 2020. All rights reserved.