org.red5.server.api.service
public class ServiceUtils extends Object
Constructor and Description |
---|
ServiceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
invokeOnAllConnections(IScope scope,
String method,
Object[] params)
Invoke a method on all connections to a given scope.
|
static void |
invokeOnAllConnections(IScope scope,
String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on all connections to a given scope and handle result.
|
static void |
invokeOnAllConnections(String method,
Object[] params)
Invoke a method on all connections to the current scope.
|
static void |
invokeOnAllConnections(String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on all connections to the current scope and handle
result.
|
static void |
invokeOnClient(IClient client,
IScope scope,
String method,
Object[] params)
Invoke a method on all connections of a client to a given scope.
|
static void |
invokeOnClient(IClient client,
IScope scope,
String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on all connections of a client to a given scope and
handle result.
|
static boolean |
invokeOnConnection(IConnection conn,
String method,
Object[] params)
Invoke a method on a given connection.
|
static boolean |
invokeOnConnection(IConnection conn,
String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on a given connection and handle result.
|
static boolean |
invokeOnConnection(String method,
Object[] params)
Invoke a method on the current connection.
|
static boolean |
invokeOnConnection(String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on the current connection and handle result.
|
static void |
notifyOnAllConnections(IScope scope,
String method,
Object[] params)
Notify a method on all connections to a given scope.
|
static void |
notifyOnAllConnections(String method,
Object[] params)
Notify a method on all connections to the current scope.
|
static void |
notifyOnClient(IClient client,
IScope scope,
String method,
Object[] params)
Notify a method on all connections of a client to a given scope.
|
static boolean |
notifyOnConnection(IConnection conn,
String method,
Object[] params)
Notify a method on a given connection.
|
static boolean |
notifyOnConnection(String method,
Object[] params)
Notify a method on the current connection.
|
public static boolean invokeOnConnection(String method, Object[] params)
method
- name of the method to invokeparams
- parameters to pass to the methodtrue
if the connection supports method calls,
otherwise false
public static boolean invokeOnConnection(String method, Object[] params, IPendingServiceCallback callback)
method
- name of the method to invokeparams
- parameters to pass to the methodcallback
- object to notify when result is receivedtrue
if the connection supports method calls,
otherwise false
public static boolean invokeOnConnection(IConnection conn, String method, Object[] params)
conn
- connection to invoke method onmethod
- name of the method to invokeparams
- parameters to pass to the methodtrue
if the connection supports method calls,
otherwise false
public static boolean invokeOnConnection(IConnection conn, String method, Object[] params, IPendingServiceCallback callback)
conn
- connection to invoke method onmethod
- name of the method to invokeparams
- parameters to pass to the methodcallback
- object to notify when result is receivedtrue
if the connection supports method calls,
otherwise false
public static void invokeOnAllConnections(String method, Object[] params)
method
- name of the method to invokeparams
- parameters to pass to the methodpublic static void invokeOnAllConnections(String method, Object[] params, IPendingServiceCallback callback)
method
- name of the method to invokeparams
- parameters to pass to the methodcallback
- object to notify when result is receivedpublic static void invokeOnAllConnections(IScope scope, String method, Object[] params)
scope
- scope to get connections formethod
- name of the method to invokeparams
- parameters to pass to the methodpublic static void invokeOnAllConnections(IScope scope, String method, Object[] params, IPendingServiceCallback callback)
scope
- scope to get connections formethod
- name of the method to invokeparams
- parameters to pass to the methodcallback
- object to notify when result is receivedpublic static void invokeOnClient(IClient client, IScope scope, String method, Object[] params)
client
- client to get connections forscope
- scope to get connections of the client frommethod
- name of the method to invokeparams
- parameters to pass to the methodpublic static void invokeOnClient(IClient client, IScope scope, String method, Object[] params, IPendingServiceCallback callback)
client
- client to get connections forscope
- scope to get connections of the client frommethod
- name of the method to invokeparams
- parameters to pass to the methodcallback
- object to notify when result is receivedpublic static boolean notifyOnConnection(String method, Object[] params)
method
- name of the method to notifyparams
- parameters to pass to the methodtrue
if the connection supports method calls,
otherwise false
public static boolean notifyOnConnection(IConnection conn, String method, Object[] params)
conn
- connection to notify method onmethod
- name of the method to notifyparams
- parameters to pass to the methodtrue
if the connection supports method calls,
otherwise false
public static void notifyOnAllConnections(String method, Object[] params)
method
- name of the method to notifyparams
- parameters to pass to the methodpublic static void notifyOnAllConnections(IScope scope, String method, Object[] params)
scope
- scope to get connections formethod
- name of the method to notifyparams
- parameters to pass to the methodpublic static void notifyOnClient(IClient client, IScope scope, String method, Object[] params)
client
- client to get connections forscope
- scope to get connections of the client frommethod
- name of the method to notifyparams
- parameters to pass to the methodCopyright © 2006-2012 The Red5 Project