Package org.zeromq
Interface ZStar.Fortune
-
- All Superinterfaces:
ZStar.TimeTaker
- All Known Implementing Classes:
ZActor.ActorFortune
- Enclosing class:
- ZStar
public static interface ZStar.Fortune extends ZStar.TimeTaker
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ZStar.Star
create(ZContext ctx, ZMQ.Socket mic, int count, ZStar.Star previous, java.lang.Object... args)
Creates a star.default ZStar.Star
create(ZContext ctx, ZMQ.Socket mic, java.nio.channels.Selector sel, int count, ZStar.Star previous, java.lang.Object... args)
Deprecated.usecreate(ZContext, Socket, int, Star, Object...)
instead.boolean
interview(ZMQ.Socket mic)
The show is over.java.lang.String
premiere(ZMQ.Socket mic, java.lang.Object... args)
This is the grand premiere! Called when the star enters the plateau.-
Methods inherited from interface org.zeromq.ZStar.TimeTaker
party
-
-
-
-
Method Detail
-
premiere
java.lang.String premiere(ZMQ.Socket mic, java.lang.Object... args)
This 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- 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
@Deprecated default ZStar.Star create(ZContext ctx, ZMQ.Socket mic, java.nio.channels.Selector sel, int count, ZStar.Star previous, java.lang.Object... args)
Deprecated.usecreate(ZContext, Socket, int, Star, Object...)
instead.Creates a star.- Parameters:
ctx
- the context used for the creation of the socketsmic
- the pipe to the Corbeille sidesel
- the selector used for pollingcount
- 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!
-
create
ZStar.Star create(ZContext ctx, ZMQ.Socket mic, int count, ZStar.Star previous, java.lang.Object... args)
Creates a star.- Parameters:
ctx
- the context used for the creation of the socketsmic
- 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
boolean interview(ZMQ.Socket mic)
The show is over. Called when the show is over.- Parameters:
mic
- the pipe to the Corbeille side- Returns:
- true to allow to spread the word and close all future communications
-
-