Package com.sun.corba.se.impl.encoding
Class BufferManagerReadGrow
java.lang.Object
com.sun.corba.se.impl.encoding.BufferManagerReadGrow
- All Implemented Interfaces:
BufferManagerRead
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancelProcessing(int requestId) voidclose(ByteBufferWithInfo bbwi) voidfragmentationOccured(ByteBufferWithInfo newFragment) com.sun.corba.se.impl.encoding.MarkAndResetHandlerReturns the mark/reset handler for this stream.voidCalled once after creating this buffer manager and before it begins processing.voidmark(com.sun.corba.se.impl.encoding.RestorableInputStream is) voidprocessFragment(ByteBuffer byteBuffer, FragmentMessage header) Case: Called from ReaderThread on complete message or fragments.voidreset()underflow(ByteBufferWithInfo bbwi) Case: called from CDRInputStream.grow.
-
Method Details
-
processFragment
Description copied from interface:BufferManagerReadCase: Called from ReaderThread on complete message or fragments. The given buf may be entire message or a fragment. The ReaderThread finds the ReadBufferManager instance either in in a fragment map (when collecting - GIOP 1.2 phase 1) or in an active server requests map (when streaming - GIOP 1.2 phase 2). As a model for implementation see IIOPInputStream's constructor of the same name. There are going to be some variations.- Specified by:
processFragmentin interfaceBufferManagerRead
-
init
Description copied from interface:BufferManagerReadCalled once after creating this buffer manager and before it begins processing.- Specified by:
initin interfaceBufferManagerRead
-
underflow
Description copied from interface:BufferManagerReadCase: called from CDRInputStream.grow. Does: this.bufQ.get() If streaming then sync on bufQ and wait if empty.- Specified by:
underflowin interfaceBufferManagerRead
-
cancelProcessing
public void cancelProcessing(int requestId) - Specified by:
cancelProcessingin interfaceBufferManagerRead
-
getMarkAndResetHandler
public com.sun.corba.se.impl.encoding.MarkAndResetHandler getMarkAndResetHandler()Description copied from interface:BufferManagerReadReturns the mark/reset handler for this stream.- Specified by:
getMarkAndResetHandlerin interfaceBufferManagerRead
-
mark
public void mark(com.sun.corba.se.impl.encoding.RestorableInputStream is) -
fragmentationOccured
-
reset
public void reset() -
close
- Specified by:
closein interfaceBufferManagerRead
-