コード例 #1
0
 BufferObjectDataOutput pop() {
   BufferObjectDataOutput out = outputPool.poll();
   if (out == null) {
     out = inputOutputFactory.createOutput(outputBufferSize, this);
   }
   return out;
 }
コード例 #2
0
 public void destroy() {
   active = false;
   for (SerializerAdapter serializer : typeMap.values()) {
     serializer.destroy();
   }
   typeMap.clear();
   idMap.clear();
   global.set(null);
   constantTypesMap.clear();
   for (BufferObjectDataOutput output : outputPool) {
     IOUtil.closeResource(output);
   }
   outputPool.clear();
 }
コード例 #3
0
 void push(BufferObjectDataOutput out) {
   if (out != null) {
     out.clear();
     outputPool.offer(out);
   }
 }