com.extrememessaging.ResponseMaster.dispositions
Class CDispositionPool
java.lang.Object
com.extrememessaging.ResponseMaster.dispositions.CDispositionPool
- All Implemented Interfaces:
- IDisposition, IResettableDisposition
public class CDispositionPool
- extends java.lang.Object
- implements IResettableDisposition
Method Summary |
void |
Close()
Cleanup any resources you allocated during construction
or ReadFromFile
Note: Close may be called more than once on the same object,
but once it is called, Dispose will not be called again. |
void |
Dispose(CMessage message)
Do whatever the disposition type does with the message. |
void |
Initialize(int poolSize,
IPoolableDisposition firstItem,
java.lang.String detailedFileName)
|
void |
ReadFromFile(java.lang.String sFileName)
Read the settings for this disposition from a file. |
void |
Reset()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CDispositionPool
public CDispositionPool()
ReadFromFile
public void ReadFromFile(java.lang.String sFileName)
throws ResponseMasterException
- Description copied from interface:
IDisposition
- Read the settings for this disposition from a file.
The sFileName parameter is blank if the DetailedDispositionFile
setting is set to 0 for the disposition type in dispositionTypes.xml
- Specified by:
ReadFromFile
in interface IDisposition
- Parameters:
sFileName
- The name of the file to read
- Throws:
ResponseMasterException
Initialize
public void Initialize(int poolSize,
IPoolableDisposition firstItem,
java.lang.String detailedFileName)
throws ResponseMasterException
- Throws:
ResponseMasterException
Close
public void Close()
- Description copied from interface:
IDisposition
- Cleanup any resources you allocated during construction
or ReadFromFile
Note: Close may be called more than once on the same object,
but once it is called, Dispose will not be called again.
- Specified by:
Close
in interface IDisposition
Dispose
public void Dispose(CMessage message)
throws ResponseMasterException
- Description copied from interface:
IDisposition
- Do whatever the disposition type does with the message.
The message should be modified or deleted.
- Specified by:
Dispose
in interface IDisposition
- Parameters:
message
- The message to process
- Throws:
ResponseMasterException
Reset
public void Reset()
- Specified by:
Reset
in interface IResettableDisposition