1 7 8 package com.sun.corba.se.impl.encoding; 9 10 import com.sun.corba.se.impl.orbutil.ORBConstants; 11 import com.sun.corba.se.impl.encoding.ByteBufferWithInfo; 12 import com.sun.corba.se.impl.encoding.BufferManagerWrite; 13 import com.sun.corba.se.pept.encoding.OutputObject; 14 import com.sun.corba.se.pept.transport.Connection; 15 import com.sun.corba.se.spi.orb.ORB; 16 17 public class BufferManagerWriteGrow extends BufferManagerWrite 18 { 19 BufferManagerWriteGrow( ORB orb ) 20 { 21 super(orb) ; 22 } 23 24 public boolean sentFragment() { 25 return false; 26 } 27 28 32 public int getBufferSize() { 33 return orb.getORBData().getGIOPBufferSize(); 34 } 35 36 public void overflow (ByteBufferWithInfo bbwi) 37 { 38 41 bbwi.growBuffer(orb); 43 44 bbwi.fragmented = false; 46 } 47 48 public void sendMessage () 49 { 50 Connection conn = 51 ((OutputObject)outputObject).getMessageMediator().getConnection(); 52 53 conn.writeLock(); 54 55 try { 56 57 conn.sendWithoutLock((OutputObject)outputObject); 58 59 sentFullMessage = true; 60 61 } finally { 62 63 conn.writeUnlock(); 64 } 65 } 66 67 72 public void close() {} 73 74 } 75 | Popular Tags |