Package org.xwiki.observation.remote
Interface NetworkAdapter
-
@Role public interface NetworkAdapter
Handle all the actual communication with the network.It's the entry point of the chosen implementation for the actual event distribution.
- Since:
- 2.0RC1
- Version:
- $Id: 5e3ec0ad7d1fc7b896a2ed83cdad964ab1191579 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
send
void send(RemoteEventData remoteEvent)
Send serializable event to the network depending of the implementation.- Parameters:
remoteEvent
- the serializable event to send
-
stopChannel
void stopChannel(String channelId) throws RemoteEventException
Stop a running channel.- Parameters:
channelId
- the identifier of the channel to stop- Throws:
RemoteEventException
- error when trying to stop a running channel
-
startChannel
void startChannel(String channelId) throws RemoteEventException
Start a channel.- Parameters:
channelId
- the identifier of the channel to start- Throws:
RemoteEventException
- error when trying to start a channel
-
stopAllChannels
void stopAllChannels() throws RemoteEventException
Stop all running channels.- Throws:
RemoteEventException
- error when trying to stop a running channel- Since:
- 2.3M1
-
-