Package com.h2tcoin.takamakachain.p2p
Class NetworkPool
- java.lang.Object
-
- com.h2tcoin.takamakachain.p2p.NetworkPool
-
public class NetworkPool extends Object
- Author:
- francesco.pasetto@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description NetworkPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBlockToPool(String blk)
void
addContractToPool(String contract)
void
addTransactionToPool(String tx)
void
addVoteToPool(String vote)
com.hazelcast.core.ISet<String>
getBlockPool()
com.hazelcast.core.ISet<String>
getContractPool()
com.hazelcast.core.HazelcastInstance
getInstance()
com.hazelcast.core.ISet<String>
getVotePool()
boolean
isIsRunning()
void
removeBlockToPool(String blk)
void
removeContractToPool(String contract)
void
removeTransactionToPool(String tx)
void
removeVoteToPool(String vote)
void
setBlockPool(com.hazelcast.core.ISet<String> blockPool)
void
setContractPool(com.hazelcast.core.ISet<String> contractPool)
void
setIsRunning(boolean isRunning)
void
setVotePool(com.hazelcast.core.ISet<String> votePool)
void
start()
void
stop()
String
toString()
-
-
-
Method Detail
-
getContractPool
public com.hazelcast.core.ISet<String> getContractPool()
-
setContractPool
public void setContractPool(com.hazelcast.core.ISet<String> contractPool)
-
getVotePool
public com.hazelcast.core.ISet<String> getVotePool()
-
setVotePool
public void setVotePool(com.hazelcast.core.ISet<String> votePool)
-
setIsRunning
public void setIsRunning(boolean isRunning)
-
isIsRunning
public boolean isIsRunning()
-
getBlockPool
public com.hazelcast.core.ISet<String> getBlockPool()
-
setBlockPool
public void setBlockPool(com.hazelcast.core.ISet<String> blockPool)
-
addBlockToPool
public void addBlockToPool(String blk)
-
removeBlockToPool
public void removeBlockToPool(String blk)
-
addTransactionToPool
public void addTransactionToPool(String tx)
-
removeTransactionToPool
public void removeTransactionToPool(String tx)
-
addContractToPool
public void addContractToPool(String contract)
-
removeContractToPool
public void removeContractToPool(String contract)
-
addVoteToPool
public void addVoteToPool(String vote)
-
removeVoteToPool
public void removeVoteToPool(String vote)
-
getInstance
public com.hazelcast.core.HazelcastInstance getInstance()
-
stop
public void stop()
-
start
public void start()
-
-