org.objectweb.dream.queue
Interface PushPullQueueAttributeController
- All Superinterfaces:
- AttributeController, PushQueueAttributeController, QueueAttributeController
- All Known Implementing Classes:
- BasicPushPullQueueImpl
- public interface PushPullQueueAttributeController
- extends PushQueueAttributeController
Attribute controller interface for Push/Pull queue. It defines the blocking
pull policy, which control the beavior when the queue is empty.
- If
true
, the pull method block until a new message is
pushed or throw a InterruptedPullException
.
- If
false
the pull method returns null
.
getBlockingPull
public boolean getBlockingPull()
- Returns the blocking pull policy.
- Returns:
- the blocking pull policy.
setBlockingPull
public void setBlockingPull(boolean blockingPull)
- Sets the blocking pull policy.
- Parameters:
blockingPull
- the blocking pull policy.
Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.