public final class Red5 extends Object
IConnection conn = Red5.getConnectionLocal(); Red5 r5 = new Red5(); IScope scope = r5.getScope(); conn = r5.getConnection(); r5 = new Red5(conn); IClient client = r5.getClient();
| Modifier and Type | Field and Description |
|---|---|
static Integer |
CAPABILITIES
Server capabilities
|
IConnection |
conn
Connection local to the current thread
|
static Map<String,Object> |
DATA_VERSION
Data version for NetStatusEvents
|
static String |
FMS_VERSION
Server version for fmsVer requests
|
static String |
VERSION
Server version with revision
|
| Constructor and Description |
|---|
Red5()
Create a new Red5 object using the connection local to the current thread A bit of magic that lets you access the red5 scope from anywhere
|
Red5(IConnection conn)
Create a new Red5 object using given connection.
|
| Modifier and Type | Method and Description |
|---|---|
static Red5 |
from(CompositeData cd)
Allows for reconstruction via CompositeData.
|
static Integer |
getCapabilities() |
IClient |
getClient()
Get the client
|
IConnection |
getConnection()
Get the connection object.
|
static IConnection |
getConnectionLocal()
Get the connection associated with the current thread.
|
IContext |
getContext()
Get the spring application context
|
static Object |
getDataVersion() |
static String |
getFMSVersion()
Returns the current version for fmsVer requests
|
IScope |
getScope()
Get the scope
|
static long |
getUpTime()
Returns server uptime in milliseconds.
|
static String |
getVersion()
Returns the current version with revision number
|
static boolean |
isDebug()
Returns true if java debugging was detected.
|
static void |
setConnectionLocal(IConnection connection)
Setter for connection
|
public IConnection conn
public static final String VERSION
public static final String FMS_VERSION
public static final Integer CAPABILITIES
public Red5(IConnection conn)
conn - Connection object.public Red5()
public static void setConnectionLocal(IConnection connection)
connection - Thread local connectionpublic static IConnection getConnectionLocal()
public IConnection getConnection()
public IScope getScope()
public IClient getClient()
public IContext getContext()
public static String getVersion()
public static String getFMSVersion()
public static Integer getCapabilities()
public static Object getDataVersion()
public static boolean isDebug()
public static long getUpTime()
public static Red5 from(CompositeData cd)
cd - composite dataCopyright © 2005–2017 Red5. All rights reserved.