Package org.red5.server.messaging
Interface IMessageOutput
-
- All Known Subinterfaces:
IBroadcastScope
,IPipe
- All Known Implementing Classes:
AbstractPipe
,InMemoryPushPushPipe
public interface IMessageOutput
Output Endpoint for a provider to connect.- Author:
- The Red5 Project, Steven Gong ([email protected])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<IProvider>
getProviders()
Getter for providersvoid
pushMessage(IMessage message)
Push a message to this output endpoint.void
sendOOBControlMessage(IProvider provider, OOBControlMessage oobCtrlMsg)
Send OOB Control Message to all consumers on the other side of pipe.boolean
subscribe(IProvider provider, Map<String,Object> paramMap)
Connect to a provider.boolean
unsubscribe(IProvider provider)
Disconnect from a provider.
-
-
-
Method Detail
-
pushMessage
void pushMessage(IMessage message) throws IOException
Push a message to this output endpoint. May block the pusher when output can't handle the message at the time.- Parameters:
message
- Message to be pushed.- Throws:
IOException
- If message could not be written.
-
subscribe
boolean subscribe(IProvider provider, Map<String,Object> paramMap)
Connect to a provider. Note that params passed has nothing to do with NetConnection.connect in client-side Flex/Flash RIA.- Parameters:
provider
- ProviderparamMap
- Parameters passed with connection- Returns:
- true when successfully subscribed, false otherwise.
-
unsubscribe
boolean unsubscribe(IProvider provider)
Disconnect from a provider.- Parameters:
provider
- Provider- Returns:
- true when successfully unsubscribed, false otherwise.
-
sendOOBControlMessage
void sendOOBControlMessage(IProvider provider, OOBControlMessage oobCtrlMsg)
Send OOB Control Message to all consumers on the other side of pipe.- Parameters:
provider
- The provider that sends the messageoobCtrlMsg
- Out-of-band control message
-
-