Package com.sun.messaging.jmq.io

Examples of com.sun.messaging.jmq.io.ReadWritePacket


  public boolean isDirectMode(){
    return false;
  }
 
  public ReadWritePacket readPacket () throws IOException {
    ReadWritePacket pkt = new ReadWritePacket();
    pkt.readPacket(is);
    return pkt;
  }
View Full Code Here


      pkt.updateTimestamp();

      pkt.updateBuffers();
     
      ReadWritePacket newPkt = (ReadWritePacket) pkt.clone();
      this.outBoundQ.put(newPkt);
     
      if (directDebug) {
        System.out.println("Direct connection wrote pkt..." + newPkt);
        //pkt.dump(System.out);
View Full Code Here

    //this.inBoundQ.put(newPkt);
  }
 
  public ReadWritePacket readPacket () throws IOException {
   
    ReadWritePacket pkt = null;
   
    //ConnectionImpl.getConnectionLogger().info("Direct connection reading pkt ...");
   
    try {
     
View Full Code Here

    if (isClosed) {
      return;
    }
   
    // TODO Auto-generated method stub
    ReadWritePacket pkt = new ReadWritePacket();
   
    pkt.setPacketType(PacketType.NONE);
   
    this.isClosed = true;
   
    //wake up read channel
    try {
View Full Code Here

    protected boolean writeOutPacket(Packet p)
        throws IOException
    {
        // write packet
        // it needs to be of type ReadOnlyPacket
        ReadWritePacket rp = new ReadWritePacket();
        // this should be deep
        rp.fill(p, true);

        // stick on the queue
        outputQueue.add(rp);

        return true;
View Full Code Here

                }
        }
        pktsOut[p.getPacketType()] ++;
        //LKS- deal with metrics
        try {
            ReadWritePacket rp = new ReadWritePacket();
            rp.fill(p, !control);
           
            // CR 6897721 always sent STOP_REPLY via the output queue
            if (BrokerInstanceImpl.isTwoThreadSyncReplies && rp.isReply() && rp.getPacketType()!=PacketType.STOP_REPLY){
              // this is a reply packet
              // this is the same thread that sent the request, so we
                // save the reply in a ThreadLocal to pass it directly to the requester
                putReply(rp);
            } else {
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.io.ReadWritePacket

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.