Package org.red5.server.adapter
Class ApplicationLifecycle
java.lang.Object
org.red5.server.adapter.ApplicationLifecycle
- All Implemented Interfaces:
IApplication
- Author:
- Dominick Accattato ([email protected])
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanappConnect(IConnection conn, Object[] params) Called per each client connectvoidappDisconnect(IConnection conn) Called every time client disconnects from the applicationbooleanCalled every time client joins app level scopevoidCalled every time client leaves the application scopebooleanCalled once when application or room startsvoidCalled on application stopbooleanroomConnect(IConnection conn, Object[] params) Called every time client connects to the roomvoidroomDisconnect(IConnection conn) Called when client disconnects from room scopebooleanCalled when user joins room scopevoidCalled when user leaves room scopebooleanCalled on application room startvoidCalled on room scope stop
-
Constructor Details
-
ApplicationLifecycle
public ApplicationLifecycle()
-
-
Method Details
-
appConnect
Description copied from interface:IApplicationCalled per each client connect- Specified by:
appConnectin interfaceIApplication- Parameters:
conn- Connection object used to provide basic connection methods. SeeIConnectionparams- List of params sent from client with NetConnection.connect call- Returns:
true
accepts the connection,false
rejects it
-
appDisconnect
Description copied from interface:IApplicationCalled every time client disconnects from the application- Specified by:
appDisconnectin interfaceIApplication- Parameters:
conn- Connection object SeeIConnection
-
appJoin
Description copied from interface:IApplicationCalled every time client joins app level scope- Specified by:
appJoinin interfaceIApplication- Parameters:
client- Client objectapp- Scope object- Returns:
true
accepts the client,false
rejects it
-
appLeave
Description copied from interface:IApplicationCalled every time client leaves the application scope- Specified by:
appLeavein interfaceIApplication- Parameters:
client- Client objectapp- Scope object
-
appStart
Description copied from interface:IApplicationCalled once when application or room starts- Specified by:
appStartin interfaceIApplication- Parameters:
app- Application or room level scope. SeeIScopefor details- Returns:
true
continues application run,false
terminates
-
appStop
Description copied from interface:IApplicationCalled on application stop- Specified by:
appStopin interfaceIApplication- Parameters:
app- Scope object
-
roomConnect
Description copied from interface:IApplicationCalled every time client connects to the room- Specified by:
roomConnectin 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:IApplicationCalled when client disconnects from room scope- Specified by:
roomDisconnectin interfaceIApplication- Parameters:
conn- Connection object used to provide basic connection methods. SeeIConnection
-
roomJoin
Description copied from interface:IApplicationCalled when user joins room scope- Specified by:
roomJoinin interfaceIApplication- Parameters:
client- Client objectroom- Scope object- Returns:
true
accepts the client,false
rejects it
-
roomLeave
Description copied from interface:IApplicationCalled when user leaves room scope- Specified by:
roomLeavein interfaceIApplication- Parameters:
client- Client objectroom- Scope object
-
roomStart
Description copied from interface:IApplicationCalled on application room start- Specified by:
roomStartin interfaceIApplication- Parameters:
room- Scope object- Returns:
true
if scope can be started,false
otherwise
-
roomStop
Description copied from interface:IApplicationCalled on room scope stop- Specified by:
roomStopin interfaceIApplication- Parameters:
room- Scope object
-