protected class UnicastTest.MyReceiver extends ReceiverAdapter
Modifier and Type | Field and Description |
---|---|
protected AtomicLong |
current_value |
protected long |
print |
protected long |
start |
protected AtomicLong |
total_bytes |
Modifier | Constructor and Description |
---|---|
protected |
MyReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
receive(Message msg)
Called when a message is received.
|
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
protected long start
protected long print
protected AtomicLong current_value
protected AtomicLong total_bytes
public void receive(Message msg)
ReceiverAdapter
receive
in interface MessageListener
receive
in class ReceiverAdapter
public void viewAccepted(View new_view)
ReceiverAdapter
Channel.connect(String)
returns.viewAccepted
in interface MembershipListener
viewAccepted
in class ReceiverAdapter
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.