public class PingPong extends ReceiverAdapter
PingPongDatagram
for the same program using MulticastSockets, and
LatencyTest
for simple latency tests (not round trip).Constructor and Description |
---|
PingPong() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
receive(Message msg)
Called when a message is received.
|
void |
start(String props,
String name,
boolean unicast) |
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
public void start(String props, String name, boolean unicast) throws Exception
Exception
public void viewAccepted(View new_view)
ReceiverAdapter
Channel.connect(String)
returns.viewAccepted
in interface MembershipListener
viewAccepted
in class ReceiverAdapter
public void receive(Message msg)
ReceiverAdapter
receive
in interface MessageListener
receive
in class ReceiverAdapter
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.