Example #1
0
 /**
  * Creates a new named {@code Timer} which may be specified to be run as a
  * daemon thread.
  *
  * @param name the name of the {@code Timer}.
  * @param isDaemon true if {@code Timer}'s thread should be a daemon thread.
  * @throws NullPointerException is {@code name} is {@code null}
  */
 public Timer(String name, bool isDaemon) : base()
 {
     if (name == null)
     {
         throw new java.lang.NullPointerException("name is null");
     }
     this.impl      = new TimerImpl(name, isDaemon);
     this.finalizer = new FinalizerHelper(impl);
     java.lang.Thread t = new java.lang.Thread(new IAC_CallTimerCancelMethodRunnable(this.impl));
     java.lang.Runtime.getRuntime().addShutdownHook(t);
 }
Example #2
0
 /**
     * Creates a new named {@code Timer} which may be specified to be run as a
     * daemon thread.
     *
     * @param name the name of the {@code Timer}.
     * @param isDaemon true if {@code Timer}'s thread should be a daemon thread.
     * @throws NullPointerException is {@code name} is {@code null}
     */
 public Timer(String name, bool isDaemon)
     : base()
 {
     if (name == null){
         throw new java.lang.NullPointerException("name is null");
     }
     this.impl = new TimerImpl(name, isDaemon);
     this.finalizer = new FinalizerHelper(impl);
     java.lang.Thread t = new java.lang.Thread (new IAC_CallTimerCancelMethodRunnable(this.impl));
     java.lang.Runtime.getRuntime().addShutdownHook(t);
 }
Example #3
0
 public IAC_CallTimerCancelMethodRunnable(TimerImpl t)
 {
     this.delegateInstance = t;
 }
Example #4
0
 internal FinalizerHelper(TimerImpl impl)
     : base()
 {
     this.impl = impl;
 }
Example #5
0
 public IAC_CallTimerCancelMethodRunnable(TimerImpl t)
 {
     this.delegateInstance = t;
 }
Example #6
0
 internal FinalizerHelper(TimerImpl impl) : base()
 {
     this.impl = impl;
 }