org.openorb.orb.io
Interface MarshalBuffer.Listener

All Superinterfaces:
java.util.EventListener
Enclosing interface:
MarshalBuffer

public static interface MarshalBuffer.Listener
extends java.util.EventListener

This interface is used by the MarshalBuffer to send important messages to a registered listener. The messages are:


Method Summary
 void availIncreaced(MarshalBuffer buffer, int available, java.lang.Object cookie)
          Called whenever the size of the buffer increases or flush is called while fragemntation is enabled.
 void bufferCanceled(MarshalBuffer buffer, org.omg.CORBA.SystemException ex, java.lang.Object cookie)
          Called when the marshal sequence is canceled by calling the cancel operation.
 void bufferClosed(MarshalBuffer buffer, int available, java.lang.Object cookie)
          Called when the buffer is closed.
 

Method Detail

availIncreaced

public void availIncreaced(MarshalBuffer buffer,
                           int available,
                           java.lang.Object cookie)
Called whenever the size of the buffer increases or flush is called while fragemntation is enabled.

Parameters:
buffer - The marshal buffer instance for which this method is called.
available - The number of bytes stored in the buffer.
cookie - The cookie passed to the addHeader operation.

bufferClosed

public void bufferClosed(MarshalBuffer buffer,
                         int available,
                         java.lang.Object cookie)
Called when the buffer is closed.

Parameters:
buffer - The marshal buffer instance for which this method is called.
available - The number of bytes stored in the buffer.
cookie - The cookie passed to the addHeader operation.

bufferCanceled

public void bufferCanceled(MarshalBuffer buffer,
                           org.omg.CORBA.SystemException ex,
                           java.lang.Object cookie)
Called when the marshal sequence is canceled by calling the cancel operation. This should either throw a system exception or simply return if the cancel will be handled later on.

Parameters:
buffer - The marshal buffer instance for which this method is called.
ex - The system exception to be thrown.
cookie - The cookie passed to the addHeader operation.