Package com.caucho.bam.mailbox

Examples of com.caucho.bam.mailbox.MultiworkerMailbox


    switch (mailboxType) {
    case NON_QUEUED:
      return new PassthroughMailbox(address, actorStream, this);
     
    default:
      return new MultiworkerMailbox(address, actorStream, this, 5);
    }
  }
View Full Code Here


                           String uid,
                           String resource)
  {
    this(next, broker);
   
    Mailbox mailbox = new MultiworkerMailbox(next.getAddress(),
                                             _actor,
                                             broker,
                                             1);

    MessageStream stream = broker.createClient(mailbox, uid, resource);
View Full Code Here

                           String uid,
                           String resource)
  {
    this((Actor) null, broker);
   
    Mailbox mailbox = new MultiworkerMailbox(null,
                                             _actor,
                                             broker,
                                             1);

    MessageStream stream = broker.createClient(mailbox, uid, resource);
View Full Code Here

    switch (mailboxType) {
    case NON_QUEUED:
      return new PassthroughMailbox(address, actorStream, getBroker());
     
    default:
      return new MultiworkerMailbox(address, actorStream, getBroker(), 5);
    }
  }
View Full Code Here

  }
 
  protected Mailbox createInboundMailbox(MessageStream inboundStream,
                                         Broker outboundBroker)
  {
    return new MultiworkerMailbox(inboundStream, outboundBroker, 1);
  }
View Full Code Here

  }
 
  protected Mailbox createOutboundMailbox(MessageStream outboundStream,
                                          Broker inboundBroker)
  {
    return new MultiworkerMailbox(outboundStream, inboundBroker, 1);
  }
View Full Code Here

    {
      _in = new HmtpReader();
      _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,
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,
View Full Code Here

    Mailbox mailbox;
   
    // queue
    if (threadMax > 0) {
      MessageStream actorStream = bamActor.getActor();
      mailbox = new MultiworkerMailbox(address, actorStream, this, threadMax);
      // bamActor.setActorStream(actorStream);
    }
    else {
      mailbox = new PassthroughMailbox(address, bamActor.getActor(), this);
    }
View Full Code Here

    ActorHolder bamActor = actor;
    Mailbox mailbox = null;
    // queue
    if (threadMax > 0) {
      MessageStream actorStream = bamActor.getActor();
      mailbox = new MultiworkerMailbox(address, actorStream, this, threadMax);
      bamActor.setMailbox(mailbox);
    }

    addMailbox(mailbox);
View Full Code Here

TOP

Related Classes of com.caucho.bam.mailbox.MultiworkerMailbox

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.