Class BlockSortedQueueBroadcast
- java.lang.Object
-
- com.h2tcoin.takamakachain.block.utils.BlockSortedQueueBroadcast
-
public class BlockSortedQueueBroadcast extends Object
- Author:
- Giovanni Antino
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanQueue(ESBean current)voiddeleteBySith(int epoch, int slot, String blockSith)voiddeleteBySith(BlockBox bb)static StringgetBlockSortingString(int epoch, int slot, String blolockHash)static StringgetBlockSortingString(BlockBox bb)intgetNumberOfElemets()StringgetTopBlockBlockHash()StringgetTopBlockPreviousBlockHash()StringgetTopBlockShortSignature()ESBeangetTopBoxESBean()static BlockSortedQueueBroadcasti()ConcurrentSkipListSet<BlockBox>pullCandidatesBlocksByPreviousBlockHash(String prevBH)voidpush(BlockBox decodedBlock)voidpush(String blockJson)
-
-
-
Method Detail
-
i
public static BlockSortedQueueBroadcast i()
-
push
public void push(String blockJson)
-
push
public void push(BlockBox decodedBlock)
-
deleteBySith
public void deleteBySith(int epoch, int slot, String blockSith)
-
deleteBySith
public void deleteBySith(BlockBox bb)
-
getBlockSortingString
public static String getBlockSortingString(int epoch, int slot, String blolockHash)
-
getNumberOfElemets
public int getNumberOfElemets()
-
getTopBlockShortSignature
public String getTopBlockShortSignature()
-
getTopBlockPreviousBlockHash
public String getTopBlockPreviousBlockHash()
-
getTopBoxESBean
public ESBean getTopBoxESBean()
-
getTopBlockBlockHash
public String getTopBlockBlockHash()
-
pullCandidatesBlocksByPreviousBlockHash
public ConcurrentSkipListSet<BlockBox> pullCandidatesBlocksByPreviousBlockHash(String prevBH)
-
cleanQueue
public void cleanQueue(ESBean current)
-
-