@Override public synchronized void destroy(){
  destroyed=true;
  for (  Thread t : workersThreads) {
    t.interrupt();
  }
  notifyAll();
}

@ Override public synchronized void destroy ( ) { destroyed = true ; for ( Thread t : workersThreads ) { t . interrupt ( ) ; } notifyAll ( ) ; }
stops all the worker threads that are waiting for messages . this method is called by the mailet container before taking this mailet out of service .
