org.objectweb.dream.queue
Class BasicPushPullQueueImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.queue.AbstractPushQueueImpl
org.objectweb.dream.queue.BasicPushPullQueueImpl
- All Implemented Interfaces:
- AttributeController, BindingController, LifeCycleController, Loggable, Pull, Push, PushPullQueueAttributeController, PushQueueAttributeController, QueueAttributeController
- public class BasicPushPullQueueImpl
- extends AbstractPushQueueImpl
- implements Pull, PushPullQueueAttributeController
Basic implementation of a Push/Pull buffer. By default the pull method is in
blocking mode, but this could be changed using the component's attribute
controller PushPullQueueAttributeController
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
blockingPull
protected boolean blockingPull
BasicPushPullQueueImpl
public BasicPushPullQueueImpl()
pull
public Message pull(Map context)
throws PullException
- Specified by:
pull
in interface Pull
- Throws:
PullException
- See Also:
Pull.pull(java.util.Map)
setBlockingPull
public void setBlockingPull(boolean blockingPull)
- Description copied from interface:
PushPullQueueAttributeController
- Sets the blocking pull policy.
- Specified by:
setBlockingPull
in interface PushPullQueueAttributeController
- Parameters:
blockingPull
- the blocking pull policy.- See Also:
PushPullQueueAttributeController.setBlockingPull(boolean)
getBlockingPull
public boolean getBlockingPull()
- Description copied from interface:
PushPullQueueAttributeController
- Returns the blocking pull policy.
- Specified by:
getBlockingPull
in interface PushPullQueueAttributeController
- Returns:
- the blocking pull policy.
- See Also:
PushPullQueueAttributeController.getBlockingPull()
listFc
public String[] listFc()
- Specified by:
listFc
in interface BindingController
- See Also:
BindingController.listFc()
Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.