|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.red5.server.messaging.PipeConnectionEvent
public class PipeConnectionEvent
Event object corresponds to the connect/disconnect events among providers/consumers and pipes.
Field Summary | |
---|---|
static int |
CONSUMER_CONNECT_PULL
A consumer connects as pull mode. |
static int |
CONSUMER_CONNECT_PUSH
A consumer connects as push mode. |
static int |
CONSUMER_DISCONNECT
A consumer disconnects. |
static int |
PROVIDER_CONNECT_PULL
A provider connects as pull mode. |
static int |
PROVIDER_CONNECT_PUSH
A provider connects as push mode. |
static int |
PROVIDER_DISCONNECT
A provider disconnects. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PipeConnectionEvent(Object source)
Construct an object with the specific pipe as the source |
Method Summary | |
---|---|
void |
addTask(Runnable task)
Add task to list |
IConsumer |
getConsumer()
Return pipe connection consumer |
Map<String,Object> |
getParamMap()
Return event parameters as Map |
IProvider |
getProvider()
Return pipe connection provider |
int |
getType()
Return event type |
void |
setConsumer(IConsumer consumer)
Setter for pipe connection consumer |
void |
setParamMap(Map<String,Object> paramMap)
Setter for event parameters map |
void |
setProvider(IProvider provider)
Setter for pipe connection provider |
void |
setType(int type)
Setter for event type |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PROVIDER_CONNECT_PULL
public static final int PROVIDER_CONNECT_PUSH
public static final int PROVIDER_DISCONNECT
public static final int CONSUMER_CONNECT_PULL
public static final int CONSUMER_CONNECT_PUSH
public static final int CONSUMER_DISCONNECT
Constructor Detail |
---|
public PipeConnectionEvent(Object source)
source
- A pipe that triggers this event.Method Detail |
---|
public IProvider getProvider()
public void setProvider(IProvider provider)
provider
- Providerpublic IConsumer getConsumer()
public void setConsumer(IConsumer consumer)
consumer
- Consumerpublic int getType()
public void setType(int type)
type
- Event typepublic Map<String,Object> getParamMap()
public void setParamMap(Map<String,Object> paramMap)
paramMap
- Event parameters as Mappublic void addTask(Runnable task)
task
- Task to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |