com.davesag.smpp
Class AbstractSMPPCommander.CloseHook

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.davesag.smpp.AbstractSMPPCommander.CloseHook
All Implemented Interfaces:
Runnable
Enclosing class:
AbstractSMPPCommander

public class AbstractSMPPCommander.CloseHook
extends Thread

this thread is attached to the system as a system shutdownHook. When the application or JVM shuts down this will try to cleanly close it's connection to the SMPP server.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractSMPPCommander.CloseHook()
           
 
Method Summary
 void run()
          try to cleanly close the connection to the SMPP server.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractSMPPCommander.CloseHook

public AbstractSMPPCommander.CloseHook()
Method Detail

run

public void run()
try to cleanly close the connection to the SMPP server.



SMPP Commander API version 20 Jan 2005. (C) 2004 Dave Sag.