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: 110661f5d90cd98c8b779ac7f2f5393895def3ae $

Method Summary
 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


Copyright © 2004–2014 XWiki. All rights reserved.