|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.adapter.ApplicationLifecycle
public class ApplicationLifecycle
| Constructor Summary | |
|---|---|
ApplicationLifecycle()
|
|
| Method Summary | |
|---|---|
boolean |
appConnect(IConnection conn,
Object[] params)
Called per each client connect |
void |
appDisconnect(IConnection conn)
Called every time client disconnects from the application |
boolean |
appJoin(IClient client,
IScope app)
Called every time client joins app level scope |
void |
appLeave(IClient client,
IScope app)
Called every time client leaves the application scope |
boolean |
appStart(IScope app)
Called once when application or room starts |
void |
appStop(IScope app)
Called on application stop |
boolean |
roomConnect(IConnection conn,
Object[] params)
Called every time client connects to the room |
void |
roomDisconnect(IConnection conn)
Called when client disconnects from room scope |
boolean |
roomJoin(IClient client,
IScope room)
Called when user joins room scope |
void |
roomLeave(IClient client,
IScope room)
Called when user leaves room scope |
boolean |
roomStart(IScope room)
Called on application room start |
void |
roomStop(IScope room)
Called on room scope stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationLifecycle()
| Method Detail |
|---|
public boolean appConnect(IConnection conn,
Object[] params)
IApplication
appConnect in interface IApplicationconn - Connection object used to provide basic connection methods.
See IConnectionparams - List of params sent from client with NetConnection.connect
call
true accepts the connection, false
rejects itpublic void appDisconnect(IConnection conn)
IApplication
appDisconnect in interface IApplicationconn - Connection object See IConnection
public boolean appJoin(IClient client,
IScope app)
IApplication
appJoin in interface IApplicationclient - Client objectapp - Scope object
true accepts the client, false
rejects it
public void appLeave(IClient client,
IScope app)
IApplication
appLeave in interface IApplicationclient - Client objectapp - Scope objectpublic boolean appStart(IScope app)
IApplication
appStart in interface IApplicationapp - Application or room level scope. See
IScope for details
true continues application run, false
terminatespublic void appStop(IScope app)
IApplication
appStop in interface IApplicationapp - Scope object
public boolean roomConnect(IConnection conn,
Object[] params)
IApplication
roomConnect in interface IApplicationconn - Connection objectparams - List of params sent from client with NetConnection.connect
call
true accepts the connection, false
rejects itpublic void roomDisconnect(IConnection conn)
IApplication
roomDisconnect in interface IApplicationconn - Connection object used to provide basic connection methods.
See IConnection
public boolean roomJoin(IClient client,
IScope room)
IApplication
roomJoin in interface IApplicationclient - Client objectroom - Scope object
true accepts the client, false
rejects it
public void roomLeave(IClient client,
IScope room)
IApplication
roomLeave in interface IApplicationclient - Client objectroom - Scope objectpublic boolean roomStart(IScope room)
IApplication
roomStart in interface IApplicationroom - Scope object
true if scope can be started, false
otherwisepublic void roomStop(IScope room)
IApplication
roomStop in interface IApplicationroom - Scope object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||