org.objectweb.dream.queue
Class PushPullQueueNotSynchronizedImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.queue.PushPullQueueNotSynchronizedImpl
- All Implemented Interfaces:
- AttributeController, BindingController, LifeCycleController, Loggable, Pull, Push, PushQueueAttributeController, PushQueuePrimitiveComponentAttributeController, QueueAttributeController
- public class PushPullQueueNotSynchronizedImpl
- extends AbstractComponent
- implements Push, Pull, PushQueuePrimitiveComponentAttributeController
High performance implementation of a Push/Pull queue. This queue is not
thread safe and its pull interface is non blocking (return
null
if the buffer is empty).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listItf
protected List listItf
size
protected int size
PushPullQueueNotSynchronizedImpl
public PushPullQueueNotSynchronizedImpl()
push
public void push(Message message,
Map context)
- Specified by:
push
in interface Push
- See Also:
Push.push(Message, Map)
pull
public Message pull(Map context)
- Specified by:
pull
in interface Pull
- See Also:
Pull.pull(Map)
getOverflowPolicy
public String getOverflowPolicy()
- Description copied from interface:
PushQueueAttributeController
- Returns the overflow policy.
- Specified by:
getOverflowPolicy
in interface PushQueueAttributeController
- Returns:
- the overflow policy.
- See Also:
PushQueueAttributeController.getOverflowPolicy()
setOverflowPolicy
public void setOverflowPolicy(String policy)
- Description copied from interface:
PushQueueAttributeController
- Sets the overflow policy.
- Specified by:
setOverflowPolicy
in interface PushQueueAttributeController
- Parameters:
policy
- the overflow policy.- See Also:
PushQueueAttributeController.setOverflowPolicy(String)
getCurrentSize
public int getCurrentSize()
- Description copied from interface:
QueueAttributeController
- Returns the current size of the queue.
- Specified by:
getCurrentSize
in interface QueueAttributeController
- Returns:
- the current size of the queue.
- See Also:
QueueAttributeController.getCurrentSize()
getMaxCapacity
public int getMaxCapacity()
- Description copied from interface:
QueueAttributeController
- Returns the maximum capacity of the queue.
- Specified by:
getMaxCapacity
in interface QueueAttributeController
- Returns:
- the maximum capacity of the queue.
- See Also:
QueueAttributeController.getMaxCapacity()
setMaxCapacity
public void setMaxCapacity(int maxCapacity)
- Description copied from interface:
QueueAttributeController
- Sets the maximum capacity of the queue.
- Specified by:
setMaxCapacity
in interface QueueAttributeController
- Parameters:
maxCapacity
- the maximum capacity of the queue.- See Also:
QueueAttributeController.setMaxCapacity(int)
listFc
public String[] listFc()
- Specified by:
listFc
in interface BindingController
- See Also:
BindingController.listFc()
bindFc
public void bindFc(String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
- Specified by:
bindFc
in interface BindingController
- Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
- See Also:
BindingController.bindFc(String,
Object)
Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.