protected class RELAY.Receiver extends ReceiverAdapter
限定符 | 构造器和说明 |
---|---|
protected |
RELAY.Receiver() |
限定符和类型 | 方法和说明 |
---|---|
void |
receive(Message msg)
Called when a message is received.
|
void |
viewAccepted(View view)
Called when a change in membership has occurred.
|
public void receive(Message msg)
ReceiverAdapter
receive
在接口中 MessageListener
receive
在类中 ReceiverAdapter
public void viewAccepted(View view)
ReceiverAdapter
Channel.connect(String)
returns.viewAccepted
在接口中 MembershipListener
viewAccepted
在类中 ReceiverAdapter