public void init()
{
sent = new List<Command>();
received = new List<Command>();
exceptions = new List<Exception>();
sessionIdx = 1;
consumerIdx = 1;
producerIdx = 1;
this.connection = null;
this.msgCount = MESSAGE_COUNT;
this.interrupted = false;
this.resumed = false;
}