|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.ime.internal.util.NonPersistentKeyedBuffer
Creates a non-persistent KeyedBuffer. Queued messages are stored in memory. If the buffer instance is destroyed, so is the Queue.
Nested Class Summary | |
protected static class |
NonPersistentKeyedBuffer.KeyedNode
|
protected static class |
NonPersistentKeyedBuffer.KeyedQueue
|
protected static class |
NonPersistentKeyedBuffer.KeyedQueueIterator
|
Field Summary | |
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
NonPersistentKeyedBuffer(ThreadPool workers)
|
Method Summary | |
java.lang.Object |
cancel(java.lang.Object key)
Cancel a message that has been put on the channel. |
java.lang.Object |
get()
Select and remove the next object in the buffer (does not wait for a message to be put into the buffer) |
java.lang.Object |
get(java.lang.Object key)
Select and remove the specified object in the buffer (does not wait for a message to be put into the buffer) |
java.lang.Object |
peek()
Select, but do not remove the next message on the channel. |
java.lang.Object[] |
peekAll()
Select, but do not remove all messages on the channel. |
void |
put(java.lang.Object key,
java.lang.Object object)
Put a message onto the channel |
java.lang.Object |
select()
Select and remove the next message in the channel If a message is not available, wait indefinitely for one |
java.lang.Object |
select(long timeout)
Select and remove the next message in the channel If a message is not available, wait the specified amount of time for one |
java.lang.Object |
select(java.lang.Object key)
Select and remove a specific message in the channel If the message is not available, wait indefinitely for one to be available |
java.lang.Object |
select(java.lang.Object key,
long timeout)
Select and remove a specific message in the channel If the message is not available, wait the specified amount of time for one |
java.lang.Object[] |
selectAll()
Select and remove all of the messages currently in the channel (useful for bulk operations). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
Constructor Detail |
public NonPersistentKeyedBuffer(ThreadPool workers)
Method Detail |
public java.lang.Object peek()
KeyedBuffer
peek
in interface KeyedBuffer
public java.lang.Object[] peekAll()
KeyedBuffer
peekAll
in interface KeyedBuffer
public void put(java.lang.Object key, java.lang.Object object)
KeyedBuffer
put
in interface KeyedBuffer
public java.lang.Object cancel(java.lang.Object key)
KeyedBuffer
cancel
in interface KeyedBuffer
public java.lang.Object[] selectAll()
KeyedBuffer
selectAll
in interface KeyedBuffer
public java.lang.Object select() throws java.lang.InterruptedException
KeyedBuffer
select
in interface KeyedBuffer
java.lang.InterruptedException
public java.lang.Object select(long timeout) throws java.lang.InterruptedException
KeyedBuffer
select
in interface KeyedBuffer
java.lang.InterruptedException
public java.lang.Object select(java.lang.Object key) throws java.lang.InterruptedException
KeyedBuffer
select
in interface KeyedBuffer
java.lang.InterruptedException
public java.lang.Object select(java.lang.Object key, long timeout) throws java.lang.InterruptedException
KeyedBuffer
select
in interface KeyedBuffer
java.lang.InterruptedException
public java.lang.Object get()
KeyedBuffer
get
in interface KeyedBuffer
public java.lang.Object get(java.lang.Object key)
KeyedBuffer
get
in interface KeyedBuffer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |