1 22 package org.jboss.resource.binding.remote; 23 24 import java.security.AccessController ; 25 import java.security.PrivilegedAction ; 26 import java.util.Map ; 27 28 34 public class ConnectionLeaseValidator 35 { 36 37 private Map connectionMap; 38 39 private long interval = Long.MAX_VALUE; 40 41 private static final ConnectionLeaseValidator validator = new ConnectionLeaseValidator(); 42 43 public synchronized void registerConnections(Map connectionMap){ 44 45 validator.internalRegister(connectionMap); 46 } 47 48 private void internalRegister(Map connectionMap){ 49 50 } 51 52 private ConnectionLeaseValidator(){ 53 54 AccessController.doPrivileged(new PrivilegedAction () 55 { 56 public Object run() 57 { 58 Runnable runnable = new ConnectionLeaseRunnable(); 59 Thread removerThread = new Thread (runnable, "ConnectionLeaseValidator"); 60 removerThread.setDaemon(true); 61 removerThread.start(); 62 return null; 63 } 64 }); 65 66 } 67 68 69 private class ConnectionLeaseRunnable implements Runnable { 70 71 public void run() 72 { 73 75 } 76 } 77 78 79 } 80 | Popular Tags |