Package nxt.peer
Class NetworkMessage.GetTransactionsMessage
java.lang.Object
nxt.peer.NetworkMessage
nxt.peer.NetworkMessage.GetTransactionsMessage
- Enclosing class:
- NetworkMessage
The GetTransactions message is sent to retrieve one or more transactions.
The Transactions message is returned in response.
- Message identifier (long)
- Transaction identifier list (long)
-
Nested Class Summary
Nested classes/interfaces inherited from class nxt.peer.NetworkMessage
NetworkMessage.AddPeersMessage, NetworkMessage.BlockchainStateMessage, NetworkMessage.BlockIdsMessage, NetworkMessage.BlockInventoryMessage, NetworkMessage.BlocksMessage, NetworkMessage.BundlerRateMessage, NetworkMessage.CumulativeDifficultyMessage, NetworkMessage.ErrorMessage, NetworkMessage.GetBlockMessage, NetworkMessage.GetCumulativeDifficultyMessage, NetworkMessage.GetInfoMessage, NetworkMessage.GetMilestoneBlockIdsMessage, NetworkMessage.GetNextBlockIdsMessage, NetworkMessage.GetNextBlocksMessage, NetworkMessage.GetPeersMessage, NetworkMessage.GetTransactionsMessage, NetworkMessage.GetUnconfirmedTransactionsMessage, NetworkMessage.MilestoneBlockIdsMessage, NetworkMessage.TransactionsInventoryMessage, NetworkMessage.TransactionsMessage -
Field Summary
Fields inherited from class nxt.peer.NetworkMessage
MAX_ARRAY_LENGTH, MAX_LIST_SIZE, MAX_LIST_SIZE_PRE_2_3_3, messageId -
Constructor Summary
ConstructorsConstructorDescriptionGetTransactionsMessage(List<ChainTransactionId> transactionIds) Construct a GetTransactions message -
Method Summary
Modifier and TypeMethodDescriptionprotected NetworkMessageconstructMessage(ByteBuffer bytes) Construct the message from the message bytesvoidgetBytes(ByteBuffer bytes) Get the message bytesintGet the message lengthGet the transaction identifiers
-
Constructor Details
-
GetTransactionsMessage
Construct a GetTransactions message- Parameters:
transactionIds- Transaction identifiers
-
-
Method Details
-
constructMessage
protected NetworkMessage constructMessage(ByteBuffer bytes) throws BufferOverflowException, BufferUnderflowException, nxt.peer.NetworkException Construct the message from the message bytes- Overrides:
constructMessagein classNetworkMessage- Parameters:
bytes- Message bytes following the message name- Returns:
- Message
- Throws:
BufferOverflowException- Message buffer is too smallBufferUnderflowException- Message is too shortnxt.peer.NetworkException- Message is not valid
-
getLength
public int getLength()Get the message length- Returns:
- Message length
-
getBytes
Get the message bytes- Parameters:
bytes- Message buffer- Throws:
BufferOverflowException- Message buffer is too small
-
getTransactionIds
Get the transaction identifiers- Returns:
- Transaction identifiers
-