|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectexamples.message.assyncpingpong01.Ping
public class Ping
This class creates client Ping and implements ISourceMessage own free attributes
| Constructor Summary | |
|---|---|
Ping(IMessageFactory factory,
IBroker broker,
IAssyncReceiver thePong)
Constructor default receives the parameters below: |
|
| Method Summary | |
|---|---|
void |
start()
This method initializes a creating message and send through of the broker public void start() { System.out.println("ping"); IMessage message = factory.createMessage("ping", this); broker.dispatchAssyncMessage(thePong, message); } |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ping(IMessageFactory factory,
IBroker broker,
IAssyncReceiver thePong)
factory - This parameter of the type IMessageFactory.broker - This parameter of the type IBroker.thePong - This parameter of the type IAssyncReceiver.
public Ping(IMessageFactory factory, IBroker broker,
IAssyncReceiver thePong)
{
this.factory = factory;
this.broker = broker;
this.thePong = thePong;
}
| Method Detail |
|---|
public void start()
public void start()
{
System.out.println("ping");
IMessage message = factory.createMessage("ping", this);
broker.dispatchAssyncMessage(thePong, message);
}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||