Package com.caucho.bam.mailbox

Examples of com.caucho.bam.mailbox.Mailbox


      int size = _startupPacketList.size();
     
      for (int i = 0; i < size; i++) {
        Packet packet = _startupPacketList.get(i);
       
        Mailbox mailbox = getMailbox(packet.getTo());
       
        if (mailbox != null) {
          _startupPacketList.remove(i);
         
          return packet;
View Full Code Here


      return null;

    WeakReference<Mailbox> ref = _actorStreamMap.get(address);

    if (ref != null) {
      Mailbox mailbox = ref.get();

      if (mailbox != null)
        return mailbox;
    }
View Full Code Here

      broker = _manager.findBroker(domain);

    if (broker == this)
      return null;

    Mailbox stream = null;

    if (_domainManager != null)
      stream = _domainManager.findDomain(domain);

    return stream;
View Full Code Here

    actor.setAddress(address);

    ActorHolder bamActor = actor;

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

    actor.setAddress(address);

    int threadMax = bamService.threadMax();

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

    _clientStub = _broker.createClient(_toLinkMailbox, uid, resource);
  }
 
  public void logout()
  {
    Mailbox clientStub = _clientStub;
    _clientStub = null;
   
    if (clientStub != null)
      _broker.removeMailbox(clientStub);
  }
View Full Code Here

TOP

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

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.