1 22 package org.jboss.mq; 23 24 33 public class MessagePool 34 { 35 37 39 41 46 public static SpyMessage getMessage() 47 { 48 return new SpyMessage(); 49 } 50 51 56 public static SpyBytesMessage getBytesMessage() 57 { 58 return new SpyBytesMessage(); 59 } 60 61 66 public static SpyMapMessage getMapMessage() 67 { 68 return new SpyMapMessage(); 69 } 70 71 76 public static SpyStreamMessage getStreamMessage() 77 { 78 return new SpyStreamMessage(); 79 } 80 81 86 public static SpyObjectMessage getObjectMessage() 87 { 88 return new SpyObjectMessage(); 89 } 90 91 94 public static SpyTextMessage getTextMessage() 95 { 96 return new SpyTextMessage(); 97 } 98 99 102 public static SpyEncapsulatedMessage getEncapsulatedMessage() 103 { 104 return new SpyEncapsulatedMessage(); 105 } 106 107 110 public static void releaseMessage(SpyMessage message) 111 { 112 } 114 115 117 119 121 123 125 } | Popular Tags |