Uses of Interface
org.refcodes.p2p.P2PMessage
-
Uses of P2PMessage in org.refcodes.p2p
Modifier and TypeClassDescriptionclass
AbstractPeer<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, TAIL extends P2PTail<LOCATOR>, MSG extends P2PMessage<LOCATOR, HEADER, ?, TAIL>, CONSUMER extends P2PMessageConsumer<MSG, PEER>, PEER extends Peer<LOCATOR, HEADER, TAIL, MSG, ROUTER>, ROUTER extends PeerRouter<LOCATOR, HEADER, TAIL, MSG>> TheAbstractPeer
class implements thePeer
interface and is a concrete implementation of a physical Peer.interface
P2PMessageConsumer<MSG extends P2PMessage<?,
?, ?, ?>, PEER extends Peer<?, ?, ?, MSG, ?>> A message consumer is a functional interfaces consuming messages.interface
Peer<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, TAIL extends P2PTail<LOCATOR>, MSG extends P2PMessage<LOCATOR, HEADER, ?, TAIL>, ROUTER extends PeerRouter<LOCATOR, HEADER, TAIL, MSG>> APeer
represents a physical peer usingPeerRouter
instances to communicate with its direct neighbours.interface
PeerProxy<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, TAIL extends P2PTail<LOCATOR>, MSG extends P2PMessage<LOCATOR, HEADER, ?, TAIL>> interface
PeerRouter<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, TAIL extends P2PTail<LOCATOR>, MSG extends P2PMessage<LOCATOR, HEADER, ?, TAIL>> APeerRouter
defines functionality to route aP2PMessage
.Modifier and TypeClassDescriptionclass
AbstractP2PMessage<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, BODY, TAIL extends P2PTail<LOCATOR>> Abstract implementation of aP2PMessage
.