Package org.red5.server.messaging
Interface IMessageOutput
- All Known Subinterfaces:
IBroadcastScope,IPipe
- All Known Implementing Classes:
AbstractPipe,BroadcastScope,InMemoryPullPullPipe,InMemoryPushPushPipe
public interface IMessageOutput
Output Endpoint for a provider to connect.
- Author:
- The Red5 Project, Steven Gong (steven.gong@gmail.com)
-
Method Summary
Modifier and TypeMethodDescriptionGetter for providersvoidpushMessage(IMessage message) Push a message to this output endpoint.voidsendOOBControlMessage(IProvider provider, OOBControlMessage oobCtrlMsg) Send OOB Control Message to all consumers on the other side of pipe.booleanConnect to a provider.booleanunsubscribe(IProvider provider) Disconnect from a provider.
-
Method Details
-
pushMessage
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
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
Disconnect from a provider.- Parameters:
provider- Provider- Returns:
- true when successfully unsubscribed, false otherwise.
-
getProviders
Getter for providers- Returns:
- Providers
-
sendOOBControlMessage
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
-