Commit 789528bc authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Use a single Timer for all instances to fix thread leak. JM-1493

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10892 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4fa04f9b
......@@ -48,6 +48,17 @@ import java.util.concurrent.LinkedBlockingQueue;
*
*/
public class PEPService implements PubSubService {
/**
* Timer to save published items to the database or remove deleted or old
* items.
*/
private static final Timer timer = new Timer("PEP service maintenance");
/**
* Date format to use for time stamps in delayed event notifications.
*/
private static final FastDateFormat fastDateFormat;
/**
* The bare JID that this service is identified by.
*/
......@@ -126,17 +137,6 @@ public class PEPService implements PubSubService {
*/
private PublishedItemTask publishedItemTask;
/**
* Timer to save published items to the database or remove deleted or old
* items.
*/
private Timer timer = new Timer("PEP service maintenance");
/**
* Date format to use for time stamps in delayed event notifications.
*/
private static final FastDateFormat fastDateFormat;
static {
fastDateFormat = FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", TimeZone.getTimeZone("UTC"));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment