Examples of ChannelListener


Examples of org.apache.catalina.tribes.ChannelListener

            //get the actual member with the correct alive time
            Member source = msg.getAddress();
            boolean rx = false;
            boolean delivered = false;
            for ( int i=0; i<channelListeners.size(); i++ ) {
                ChannelListener channelListener = (ChannelListener)channelListeners.get(i);
                if (channelListener != null && channelListener.accept(fwd, source)) {
                    channelListener.messageReceived(fwd, source);
                    delivered = true;
                    //if the message was accepted by an RPC channel, that channel
                    //is responsible for returning the reply, otherwise we send an absence reply
                    if ( channelListener instanceof RpcChannel ) rx = true;
                }
View Full Code Here

Examples of org.apache.catalina.tribes.ChannelListener

            //get the actual member with the correct alive time
            Member source = msg.getAddress();
            boolean rx = false;
            boolean delivered = false;
            for ( int i=0; i<channelListeners.size(); i++ ) {
                ChannelListener channelListener = (ChannelListener)channelListeners.get(i);
                if (channelListener != null && channelListener.accept(fwd, source)) {
                    channelListener.messageReceived(fwd, source);
                    delivered = true;
                    //if the message was accepted by an RPC channel, that channel
                    //is responsible for returning the reply, otherwise we send an absence reply
                    if ( channelListener instanceof RpcChannel ) rx = true;
                }
View Full Code Here

Examples of org.apache.catalina.tribes.ChannelListener

            //get the actual member with the correct alive time
            Member source = msg.getAddress();
            boolean rx = false;
            boolean delivered = false;
            for ( int i=0; i<channelListeners.size(); i++ ) {
                ChannelListener channelListener = (ChannelListener)channelListeners.get(i);
                if (channelListener != null && channelListener.accept(fwd, source)) {
                    channelListener.messageReceived(fwd, source);
                    delivered = true;
                    //if the message was accepted by an RPC channel, that channel
                    //is responsible for returning the reply, otherwise we send an absence reply
                    if ( channelListener instanceof RpcChannel ) rx = true;
                }
View Full Code Here

Examples of org.apache.catalina.tribes.ChannelListener

            //get the actual member with the correct alive time
            Member source = msg.getAddress();
            boolean rx = false;
            boolean delivered = false;
            for ( int i=0; i<channelListeners.size(); i++ ) {
                ChannelListener channelListener = (ChannelListener)channelListeners.get(i);
                if (channelListener != null && channelListener.accept(fwd, source)) {
                    channelListener.messageReceived(fwd, source);
                    delivered = true;
                    //if the message was accepted by an RPC channel, that channel
                    //is responsible for returning the reply, otherwise we send an absence reply
                    if ( channelListener instanceof RpcChannel ) rx = true;
                }
View Full Code Here

Examples of org.apache.catalina.tribes.ChannelListener

            //get the actual member with the correct alive time
            Member source = msg.getAddress();
            boolean rx = false;
            boolean delivered = false;
            for ( int i=0; i<channelListeners.size(); i++ ) {
                ChannelListener channelListener = (ChannelListener)channelListeners.get(i);
                if (channelListener != null && channelListener.accept(fwd, source)) {
                    channelListener.messageReceived(fwd, source);
                    delivered = true;
                    //if the message was accepted by an RPC channel, that channel
                    //is responsible for returning the reply, otherwise we send an absence reply
                    if ( channelListener instanceof RpcChannel ) rx = true;
                }
View Full Code Here

Examples of org.cometd.bayeux.server.BayeuxServer.ChannelListener

  private CometdPushService(final WebApplication application)
  {
    _application = application;

    _getBayeuxServer().addListener(new ChannelListener()
    {
      @Override
      public void channelAdded(final ServerChannel channel)
      {
        LOG.debug("Cometd channel added. channel={}", channel);
View Full Code Here

Examples of org.darkhelm.dragonchess.client.channel.ChannelListener

      @Override
      public void onSuccess(String result) {
        channelKey = result;
        append("Channel key: " + channelKey);
        Channel channel = new Channel(channelKey);
        channel.addChannelListener(new ChannelListener() {

          @Override
          public void onReceive(Message message) {
            append(message.toString());
View Full Code Here

Examples of org.jgroups.ChannelListener

            throw new Exception(msg);
        }
        channel = new JChannel(config);
        state = new byte[1];
        channel.setOpt(Channel.GET_STATE_EVENTS, Boolean.TRUE);
        channel.setChannelListener(new ChannelListener() {

                public void channelClosed(Channel channel) {
                    log.info("ChannelListener: CHANNEL CLOSED");
                }
          
View Full Code Here

Examples of org.jgroups.ChannelListener

        try {

            serverChannel = new JChannel(serverChannelConfigURL);
            serverChannel.setOpt(Channel.GET_STATE_EVENTS, Boolean.TRUE);
            serverChannel.setChannelListener(new ChannelListener() {
                   
                    public void  channelClosed(Channel channel) {
                        log.debug("channelClosed("+channel+")");
                    }
          
View Full Code Here

Examples of org.jgroups.ChannelListener

        if (!controlChannel.hasProtocol(SEQUENCER.class))
            throw new RuntimeException("JChannel must have the SEQUENCER protocol");

        addNodeProperty(JGROUPS_ADDRESS, true, true, JGROUPS_ADDRESS_READER_WRITER);

        channel.addChannelListener(new ChannelListener() {

            @Override
            public void channelConnected(org.jgroups.Channel channel) {
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.