@Override public BroadcastEndpoint createBroadcastEndpoint() throws Exception { JGroupsBroadcastEndpoint endpoint = new JGroupsBroadcastEndpoint(); endpoint.initChannel(channel, channelName); return endpoint; } };
public synchronized void openClient() throws Exception { if (clientOpened) { return; } internalOpen(); receiver = new JGroupsReceiver(); channel.setReceiver(receiver); clientOpened = true; }
@Override public BroadcastEndpoint createBroadcastEndpoint() throws Exception { JGroupsBroadcastEndpoint endpoint = new JGroupsBroadcastEndpoint(); endpoint.initChannel(jgroupsFile, channelName); return endpoint; } };
public synchronized void openBroadcaster() throws Exception { if (broadcastOpened) return; internalOpen(); broadcastOpened = true; }