public synchronized void shutdown(){
synchronized (Instance) {
    Running=false;
    clearPending();
  }
synchronized (InitLock) {
    cleanupCompression();
    CompressionThreads=0;
  }
synchronized (Instance) {
    cleanupQueue();
  }
}

public synchronized void shutdown ( ) { synchronized ( Instance ) { Running = false ; clearPending ( ) ; } synchronized ( InitLock ) { cleanupCompression ( ) ; CompressionThreads = 0 ; } synchronized ( Instance ) { cleanupQueue ( ) ; } }
shuts down the compression service ( including background threads ) .
