Module org.refcodes.p2p
Package org.refcodes.p2p
Interface P2PMessageConsumer<MSG extends P2PMessage<?,?,?>,PEER extends Peer<?,?,MSG,?>>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface P2PMessageConsumer<MSG extends P2PMessage<?,?,?>,PEER extends Peer<?,?,MSG,?>>
A message consumer is a functional interfaces consuming messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onP2PMessage(MSG aMessage, PEER aPeer)
Invoked when a message is being consumed.
-