|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.random.rjgodoy.trng.MH_PoolDaemon
public class MH_PoolDaemon
Provides information and configuration of the pool daemon.
The pool daemon is a thread which fetches some bits from the remote source whenever the quota is 1.000.000
Field Summary | |
---|---|
(package private) static long |
blockSize
|
(package private) static long |
poolSize
|
(package private) static boolean |
running
|
Constructor Summary | |
---|---|
MH_PoolDaemon()
|
Method Summary | |
---|---|
static long |
getBlockSize()
Returns the amount of bits that will be collected. |
static long |
getPoolSize()
Return the amount of bits available in the pool. |
static boolean |
isRunning()
Returns whether the PoolDaemon is running |
static void |
setBlockSize(long blockSize)
Sets the amount of bits that will be collected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static boolean running
static long blockSize
static long poolSize
Constructor Detail |
---|
public MH_PoolDaemon()
Method Detail |
---|
public static boolean isRunning()
true
if the pool daemon is running, false
otherwise.public static long getBlockSize()
Collection is only performed when the quota is 1.000.000.
public static long getPoolSize()
public static void setBlockSize(long blockSize)
Collection is only performed when the quota is 1.000.000. The value must be non-negative and lower or equal than 200.000 (0 will disable the pooling, but it will not kill the daemon). The default value is 200.000.
blockSize
- the amount of bits that will be collected.
IllegalArgumentException
- if the value is negative or greater than 200.000
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or request a feature | Copyright © (2008-2011) Roberto Javier Godoy |
Project Web Hosted by | SouceForge.net is registered trademark of SourceForge, Inc., in the United States and other countries. |