public abstract class InboundMessageQueuer extends PeerSocketHandler
PeerSocketHandler that keeps inbound messages in a queue for later processing| Modifier and Type | Field and Description |
|---|---|
BlockingQueue<Message> |
inboundMessages |
BloomFilter |
lastReceivedFilter |
Map<Long,com.google.common.util.concurrent.SettableFuture<Void>> |
mapPingFutures |
Peer |
peer |
peerAddress, writeTarget| Modifier | Constructor and Description |
|---|---|
protected |
InboundMessageQueuer(NetworkParameters params) |
| Modifier and Type | Method and Description |
|---|---|
Message |
nextMessage() |
Message |
nextMessageBlocking() |
protected void |
processMessage(Message m)
Called every time a message is received from the network
|
close, getAddress, getMaxMessageSize, receiveBytes, sendMessage, setWriteTarget, timeoutOccurredresetTimeout, setSocketTimeout, setTimeoutEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectionClosed, connectionOpenedpublic final BlockingQueue<Message> inboundMessages
public final Map<Long,com.google.common.util.concurrent.SettableFuture<Void>> mapPingFutures
public Peer peer
public BloomFilter lastReceivedFilter
protected InboundMessageQueuer(NetworkParameters params)
public Message nextMessage()
public Message nextMessageBlocking() throws InterruptedException
InterruptedExceptionprotected void processMessage(Message m) throws Exception
PeerSocketHandlerprocessMessage in class PeerSocketHandlerExceptionCopyright © 2015. All rights reserved.