org.apache.geronimo.messaging.io
Class PushSynchronizationAdaptor
java.lang.Object
org.apache.geronimo.messaging.io.PushSynchronizationAdaptor
- All Implemented Interfaces:
- PushSynchronization
- public class PushSynchronizationAdaptor
- extends Object
- implements PushSynchronization
PushSynchronization 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 |
PushSynchronizationAdaptor
public PushSynchronizationAdaptor()
beforePush
public Object beforePush(StreamOutputStream anOut,
Msg aMsg)
throws IOException
- Description copied from interface:
PushSynchronization
- Notifies the implementation that a Msg is being pushed.
This method is called before the actual push of the Msg.
- Specified by:
beforePush
in interface PushSynchronization
- Parameters:
anOut
- Used to write information before the Msg itself.aMsg
- Msg being pushed.
- Returns:
- Opaque object which is passed by to this instance via
afterPush. It can be used to pass information between a beforePush
and a afterPush call.
- Throws:
IOException
- Indicates that an I/O error has occured.
afterPush
public void afterPush(StreamOutputStream anOut,
Msg aMsg,
Object anOpaque)
throws IOException
- Description copied from interface:
PushSynchronization
- Notifies the implementation that a Msg has been pushed.
- Specified by:
afterPush
in interface PushSynchronization
- Parameters:
anOut
- Used to write information after the Msg itself.aMsg
- Msg which has just been pushed.anOpaque
- Value returned by beforePush.
- Throws:
IOException
- Indicates that an I/O error has occured.
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.