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 void
cleanQueue(ESBean current)
void
deleteBySith(int epoch, int slot, String blockSith)
void
deleteBySith(BlockBox bb)
static String
getBlockSortingString(int epoch, int slot, String blolockHash)
static String
getBlockSortingString(BlockBox bb)
int
getNumberOfElemets()
String
getTopBlockBlockHash()
String
getTopBlockPreviousBlockHash()
String
getTopBlockShortSignature()
ESBean
getTopBoxESBean()
static BlockSortedQueueBroadcast
i()
ConcurrentSkipListSet<BlockBox>
pullCandidatesBlocksByPreviousBlockHash(String prevBH)
void
push(BlockBox decodedBlock)
void
push(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)
-
-