public class Chat extends ReceiverAdapter
Constructor and Description |
---|
Chat() |
Modifier and Type | Method and Description |
---|---|
protected static void |
help() |
static void |
main(java.lang.String[] args) |
void |
receive(Message msg)
Called when a message is received.
|
void |
start(JChannel ch)
Method called from other app, injecting channel
|
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
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
public void start(JChannel ch) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected static void help()
Copyright © 1998-2020 Red Hat. All Rights Reserved.