org.apache.geronimo.messaging.io
Class PopSynchronizationAdaptor
java.lang.Object
org.apache.geronimo.messaging.io.PopSynchronizationAdaptor
- All Implemented Interfaces:
- PopSynchronization
- public class PopSynchronizationAdaptor
- extends Object
- implements PopSynchronization
PopSynchronizarion adaptor.
- Version:
- $Revision: 1.1 $ $Date: 2004/05/11 12:06:41 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopSynchronizationAdaptor
public PopSynchronizationAdaptor()
beforePop
public Object beforePop(StreamInputStream anIn)
throws IOException
- Description copied from interface:
PopSynchronization
- Notifies the implementation that a Msg is being popped.
This method is called before the actual pop of the Msg.
- Specified by:
beforePop
in interface PopSynchronization
- Parameters:
anIn
- Used to read information from the input stream before
the Msg itself.
- Returns:
- Opaque object which is passed back to this instance via
afterPop. It can be used to pass information between a beforePop
and an afterPop call.
- Throws:
IOException
- Indicates that an I/O error has occured.
afterPop
public void afterPop(StreamInputStream anIn,
Msg aMsg,
Object anOpaque)
throws IOException
- Description copied from interface:
PopSynchronization
- Notifies the implementation that a Msg has been popped.
- Specified by:
afterPop
in interface PopSynchronization
- Parameters:
anIn
- Used to read information from the input stream after
the Msg itself.aMsg
- Msg which has just been popped.anOpaque
- Value returned by beforePop.
- Throws:
IOException
- Indicates that an I/O error has occured.
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.