com.antiaction.mayhem.core
Class ObjectBroker

java.lang.Object
  extended by com.antiaction.mayhem.core.ObjectBroker
All Implemented Interfaces:
IObjectBroker

public class ObjectBroker
extends java.lang.Object
implements IObjectBroker

ObjectBroker.

Version:
1.00
Author:
Nicholas Clarke

Constructor Summary
ObjectBroker()
          Instantiate an empty broker.
 
Method Summary
 boolean init(java.util.HashMap props)
          Initialize object with specified properties.
 void insert(java.lang.Object obj)
           
 java.lang.Object remove()
          Returns an object from the queue or blocks until one arrives.
 java.lang.Object remove(long timeout)
          Returns an object from the queue or blocks until one arrives or the call is timed out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectBroker

public ObjectBroker()
Instantiate an empty broker.

Method Detail

init

public boolean init(java.util.HashMap props)
Description copied from interface: IObjectBroker
Initialize object with specified properties.

Specified by:
init in interface IObjectBroker
Parameters:
props - init properties.

insert

public void insert(java.lang.Object obj)
Specified by:
insert in interface IObjectBroker

remove

public java.lang.Object remove()
Description copied from interface: IObjectBroker
Returns an object from the queue or blocks until one arrives.

Specified by:
remove in interface IObjectBroker
Returns:
object from the queue to be processed.
See Also:
IObjectBroker.remove(long)

remove

public java.lang.Object remove(long timeout)
Description copied from interface: IObjectBroker
Returns an object from the queue or blocks until one arrives or the call is timed out.

Specified by:
remove in interface IObjectBroker
Returns:
object from the queue to be processed.
See Also:
IObjectBroker.remove()


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.