Package org.red5.server.adapter
Class ApplicationLifecycle
java.lang.Object
org.red5.server.adapter.ApplicationLifecycle
- All Implemented Interfaces:
IApplication
- Author:
- Dominick Accattato (daccattato@gmail.com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
appConnect
(IConnection conn, Object[] params) Called per each client connectvoid
appDisconnect
(IConnection conn) Called every time client disconnects from the applicationboolean
Called every time client joins app level scopevoid
Called every time client leaves the application scopeboolean
Called once when application or room startsvoid
Called on application stopboolean
roomConnect
(IConnection conn, Object[] params) Called every time client connects to the roomvoid
roomDisconnect
(IConnection conn) Called when client disconnects from room scopeboolean
Called when user joins room scopevoid
Called when user leaves room scopeboolean
Called on application room startvoid
Called on room scope stop
-
Constructor Details
-
ApplicationLifecycle
public ApplicationLifecycle()
-
-
Method Details
-
appConnect
Description copied from interface:IApplication
Called per each client connect- Specified by:
appConnect
in interfaceIApplication
- Parameters:
conn
- Connection object used to provide basic connection methods. SeeIConnection
params
- List of params sent from client with NetConnection.connect call- Returns:
true
accepts the connection,false
rejects it
-
appDisconnect
Description copied from interface:IApplication
Called every time client disconnects from the application- Specified by:
appDisconnect
in interfaceIApplication
- Parameters:
conn
- Connection object SeeIConnection
-
appJoin
Description copied from interface:IApplication
Called every time client joins app level scope- Specified by:
appJoin
in interfaceIApplication
- Parameters:
client
- Client objectapp
- Scope object- Returns:
true
accepts the client,false
rejects it
-
appLeave
Description copied from interface:IApplication
Called every time client leaves the application scope- Specified by:
appLeave
in interfaceIApplication
- Parameters:
client
- Client objectapp
- Scope object
-
appStart
Description copied from interface:IApplication
Called once when application or room starts- Specified by:
appStart
in interfaceIApplication
- Parameters:
app
- Application or room level scope. SeeIScope
for details- Returns:
true
continues application run,false
terminates
-
appStop
Description copied from interface:IApplication
Called on application stop- Specified by:
appStop
in interfaceIApplication
- Parameters:
app
- Scope object
-
roomConnect
Description copied from interface:IApplication
Called every time client connects to the room- Specified by:
roomConnect
in interfaceIApplication
- Parameters:
conn
- Connection objectparams
- List of params sent from client with NetConnection.connect call- Returns:
true
accepts the connection,false
rejects it
-
roomDisconnect
Description copied from interface:IApplication
Called when client disconnects from room scope- Specified by:
roomDisconnect
in interfaceIApplication
- Parameters:
conn
- Connection object used to provide basic connection methods. SeeIConnection
-
roomJoin
Description copied from interface:IApplication
Called when user joins room scope- Specified by:
roomJoin
in interfaceIApplication
- Parameters:
client
- Client objectroom
- Scope object- Returns:
true
accepts the client,false
rejects it
-
roomLeave
Description copied from interface:IApplication
Called when user leaves room scope- Specified by:
roomLeave
in interfaceIApplication
- Parameters:
client
- Client objectroom
- Scope object
-
roomStart
Description copied from interface:IApplication
Called on application room start- Specified by:
roomStart
in interfaceIApplication
- Parameters:
room
- Scope object- Returns:
true
if scope can be started,false
otherwise
-
roomStop
Description copied from interface:IApplication
Called on room scope stop- Specified by:
roomStop
in interfaceIApplication
- Parameters:
room
- Scope object
-