Class ZActor.ActorFortune
java.lang.Object
org.zeromq.ZActor.ActorFortune
- All Implemented Interfaces:
ZStar.Fortune, ZStar.TimeTaker
- Enclosing class:
ZActor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ZContext ctx, ZMQ.Socket pipe, int count, ZStar.Star previous, Object... args) Creates a star.booleaninterview(ZMQ.Socket mic) The show is over.voidCalled when the show is finished but no cleaning is still done.premiere(ZMQ.Socket mic, Object... args) This is the grand premiere! Called when the star enters the plateau.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ZStar.Fortune
create
-
Field Details
-
actor
-
-
Constructor Details
-
ActorFortune
-
-
Method Details
-
premiere
Description copied from interface:ZStar.FortuneThis is the grand premiere! Called when the star enters the plateau. The show is about to begin. Inform the public about that. Called before the creation of the first star and its sockets- Specified by:
premierein interfaceZStar.Fortune- Parameters:
mic- the pipe to the Corbeille sideargs- the arguments passed as parameters of the star constructor- Returns:
- the name of the upcoming performance.
-
create
public ZStar.Star create(ZContext ctx, ZMQ.Socket pipe, int count, ZStar.Star previous, Object... args) Description copied from interface:ZStar.FortuneCreates a star.- Specified by:
createin interfaceZStar.Fortune- Parameters:
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 constructor- Returns:
- a new star is born!
-
interview
Description copied from interface:ZStar.FortuneThe show is over. Called when the show is over.- Specified by:
interviewin interfaceZStar.Fortune- Parameters:
mic- the pipe to the Corbeille side- Returns:
- true to allow to spread the word and close all future communications
-
party
Description copied from interface:ZStar.TimeTakerCalled when the show is finished but no cleaning is still done. Useful to make the background thread wait a little bit, for example.- Specified by:
partyin interfaceZStar.TimeTaker- Parameters:
ctx- the shadow context
-