@Role
public interface NetworkAdapter
It's the entry point of the chosen implementation for the actual event distribution.
Modifier and Type | Method and Description |
---|---|
void |
send(RemoteEventData remoteEvent)
Send serializable event to the network depending of the implementation.
|
void |
startChannel(String channelId)
Start a channel.
|
void |
stopAllChannels()
Stop all running channels.
|
void |
stopChannel(String channelId)
Stop a running channel.
|
void send(RemoteEventData remoteEvent)
remoteEvent
- the serializable event to sendvoid stopChannel(String channelId) throws RemoteEventException
channelId
- the identifier of the channel to stopRemoteEventException
- error when trying to stop a running channelvoid startChannel(String channelId) throws RemoteEventException
channelId
- the identifier of the channel to startRemoteEventException
- error when trying to start a channelvoid stopAllChannels() throws RemoteEventException
RemoteEventException
- error when trying to stop a running channelCopyright © 2004–2021 XWiki. All rights reserved.