|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.message.MessageDecoderObjectPool
An ObjectPool of MessageDecoder Objects
| Constructor Summary | |
MessageDecoderObjectPool(MessageServiceProvider msp)
Creates a MessageDecoderObjectPool with the specified MessageServiceProvider. |
|
| Method Summary | |
void |
close()
Close the MessageEncoderObjectPool This method closes the ObjectPool and cleans up any dangling references. |
MessageDecoder |
getMessageDecoder()
Get a MessageDecoder Object from the ObjectPool |
void |
initialize(Properties properties)
Initialize the MessageDecoderObjectPool |
void |
releaseMessageDecoder(MessageDecoder messageDecoder)
Returns the specified MessageDecoder to the pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MessageDecoderObjectPool(MessageServiceProvider msp)
msp - provides services needed by the messaging
framework| Method Detail |
public void initialize(Properties properties)
throws LifecycleException
properties - the initialization Properties object
LifecycleException - thrown if an error occurs initializing the
MessageDecoderObjectPool
public MessageDecoder getMessageDecoder()
throws MessageDecoderException
MessageDecoderException - thrown if an error occurs getting a
MessageDecoder Object from the ObjectPool. Typically this will be some
sort of Object creation error that occurs.public void releaseMessageDecoder(MessageDecoder messageDecoder)
messageDecoder - the MessageDecoder to be returned to the ObjectPool
IllegalArgumentException - thrown if the MessageDecoder
parameter is null. Note: UNCHECKED EXCEPTIONpublic void close()
This method closes the ObjectPool and cleans up any dangling references.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||