Package org.bitcoinj.core
Class NotFoundMessage
java.lang.Object
org.bitcoinj.core.BaseMessage
org.bitcoinj.core.ListMessage
org.bitcoinj.core.InventoryMessage
org.bitcoinj.core.NotFoundMessage
- All Implemented Interfaces:
Message
Sent by a peer when a getdata request doesn't find the requested data in the mempool. It has the same format as an inventory message and lists the hashes of the missing items.
Instances of this class -- that use deprecated methods -- are not safe for use by multiple threads.
-
Field Summary
Fields inherited from class org.bitcoinj.core.InventoryMessage
MAX_INV_SIZE
Fields inherited from class org.bitcoinj.core.ListMessage
items, MAX_INVENTORY_ITEMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NotFoundMessage
read
(ByteBuffer payload) Deserialize this message from a given payload.Methods inherited from class org.bitcoinj.core.InventoryMessage
addBlock, addTransaction, ofBlocks, ofBlocks, ofTransactions, ofTransactions, with
Methods inherited from class org.bitcoinj.core.ListMessage
addItem, bitcoinSerializeToStream, equals, getItems, hashCode, readItems, removeItem, toString
Methods inherited from class org.bitcoinj.core.BaseMessage
messageSize, serialize
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bitcoinj.core.Message
bitcoinSerialize, getMessageSize, unsafeBitcoinSerialize
-
Field Details
-
MIN_PROTOCOL_VERSION
public static int MIN_PROTOCOL_VERSION
-
-
Constructor Details
-
NotFoundMessage
Deprecated. -
NotFoundMessage
-
-
Method Details
-
read
public static NotFoundMessage read(ByteBuffer payload) throws BufferUnderflowException, ProtocolException Deserialize this message from a given payload.- Parameters:
payload
- payload to deserialize from- Returns:
- read message
- Throws:
BufferUnderflowException
- if the read message extends beyond the remaining bytes of the payloadProtocolException
-