Package com.caucho.bam.broker

Examples of com.caucho.bam.broker.PassthroughBroker


      throw new NullPointerException();
   
    _linkFactory = linkFactory;
    _actor = actor;
   
    PassthroughBroker inboundBroker = new PassthroughBroker();
    PassthroughBroker outboundBroker = new PassthroughBroker();
   
    Actor inboundStream = actor.getActor();
    SimpleActorSender sender = new SimpleActorSender(inboundStream,
                                                     outboundBroker);
   
    _sender = sender;
   
    Mailbox inboundMailbox = createInboundMailbox(sender.getActor(),
                                                  outboundBroker);
   
    inboundBroker.setMailbox(inboundMailbox);
   
    MessageStream outboundStream
      = new OutboundMessageStream(_linkFactory, inboundBroker);
   
    Mailbox outboundMailbox = createOutboundMailbox(outboundStream,
                                                    inboundBroker);
    outboundBroker.setMailbox(outboundMailbox);
   
    actor.setMailbox(inboundMailbox);
    actor.setBroker(outboundBroker);
   
    _outboundBroker = outboundBroker;
View Full Code Here


      _out = new HmtpWebSocketContextWriter(context);
     
      ManagedBroker broker = getBroker();
      Mailbox toLinkMailbox = new MultiworkerMailbox(_out.getAddress(), _out, broker, 1);
     
      _linkStream = new PassthroughBroker(toLinkMailbox);
      ClientStubManager clientManager = new ClientStubManager(broker, toLinkMailbox);
      _linkService = new ServerLinkActor(_linkStream, clientManager, _authManager, _ipAddress);
      _broker = new ServerProxyBroker(broker, clientManager,
                                      _linkService.getActor());
    }
View Full Code Here

    ManagedBroker broker = _bamService.getBroker();

    _hmtpWriter.setAddress("hmtp-server-" + _conn.getId() + "-hmtp");

    Mailbox toLinkMailbox = new MultiworkerMailbox(_hmtpWriter.getAddress(), _hmtpWriter, broker, 1);
    _toLinkBroker = new PassthroughBroker(toLinkMailbox);
   
    _clientManager = new ClientStubManager(broker, toLinkMailbox);

    _linkActor = new HmtpLinkActor(_toLinkBroker,
                                   _clientManager,
View Full Code Here

TOP

Related Classes of com.caucho.bam.broker.PassthroughBroker

Copyright © 2018 www.massapicom. 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.