public class PipeConnectionEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
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.
|
source| Constructor and Description |
|---|
PipeConnectionEvent(Object source)
Construct an object with the specific pipe as the
source
|
| Modifier and Type | Method and Description |
|---|---|
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
|
getSource, toStringpublic 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
public PipeConnectionEvent(Object source)
source - A pipe that triggers this event.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 addCopyright © 2006-2012 The Red5 Project