private static final class ZActor.ActorFortune extends java.lang.Object implements ZStar.Fortune
Modifier and Type | Field and Description |
---|---|
private ZActor.Actor |
actor |
Constructor and Description |
---|
ActorFortune(ZActor.Actor actor) |
Modifier and Type | Method and Description |
---|---|
ZStar.Star |
create(ZContext ctx,
ZMQ.Socket pipe,
int count,
ZStar.Star previous,
java.lang.Object... args)
Creates a star.
|
boolean |
interview(ZMQ.Socket mic)
The show is over.
|
void |
party(ZContext ctx)
Called when the show is finished but no cleaning is still done.
|
java.lang.String |
premiere(ZMQ.Socket mic,
java.lang.Object... args)
This is the grand premiere!
Called when the star enters the plateau.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
private final ZActor.Actor actor
public ActorFortune(ZActor.Actor actor)
public java.lang.String premiere(ZMQ.Socket mic, java.lang.Object... args)
ZStar.Fortune
premiere
in interface ZStar.Fortune
mic
- the pipe to the Corbeille sideargs
- the arguments passed as parameters of the star constructorpublic ZStar.Star create(ZContext ctx, ZMQ.Socket pipe, int count, ZStar.Star previous, java.lang.Object... args)
ZStar.Fortune
create
in interface ZStar.Fortune
ctx
- the context used for the creation of the socketspipe
- the pipe to the Corbeille sidecount
- the number of times a star was created.previous
- the previous star if any (null at the first creation)args
- the arguments passed as parameters of the star constructorpublic boolean interview(ZMQ.Socket mic)
ZStar.Fortune
interview
in interface ZStar.Fortune
mic
- the pipe to the Corbeille sidepublic void party(ZContext ctx)
ZStar.TimeTaker
party
in interface ZStar.TimeTaker
ctx
- the shadow context