Package net.timewalker.ffmq3.utils

Examples of net.timewalker.ffmq3.utils.Settings.writeTo()


        // Do we have a cached version of the raw message ?
      RawDataBuffer rawMsg = message.getRawMessage();
        if (rawMsg != null)
        {
          out.writeInt(rawMsg.size());
          rawMsg.writeTo(out);
        }
        else
        {
            // Serialize the message
          out.writeInt(0); // Write a dummy size
View Full Code Here


                      PacketSerializer.serializeTo(packet, buffer);
                     
                      // Write it on the stream
                      OutputStream out = outChannel.socketOutputStream;
                      SerializationTools.writeInt(buffer.size(),out); // Packet size
                      buffer.writeTo(out); // Packet body
              }
             
              // Flush output stream
              outChannel.flush();
             
View Full Code Here

                throw new FFMQException("Queue descriptor already exists : "+queueDescriptor.getAbsolutePath(),"FS_ERROR");
           
            // Create the descriptor file
            log.debug("Persisting queue definition for "+queueDef.getName());
            Settings queueSettings = queueDef.asSettings();
            queueSettings.writeTo(queueDescriptor, "Queue definition descriptor for "+queueDef.getName());
        }
       
        // Register it
        queueDefinitions.put(queueDef.getName(), queueDef);
    }
View Full Code Here

            if (topicDescriptor.exists())
                throw new FFMQException("Topic descriptor already exists : "+topicDescriptor.getAbsolutePath(),"FS_ERROR");
           
            // Create the descriptor file
            Settings topicSettings = topicDef.asSettings();
            topicSettings.writeTo(topicDescriptor, "Topic definition descriptor for "+topicDef.getName());
        }
       
        // Register it
        topicDefinitions.put(topicDef.getName(), topicDef);
    }
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.