All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atomikos.thread.InterruptedExceptionHelper Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
/**
 * Copyright (C) 2000-2023 Atomikos 
 *
 * LICENSE CONDITIONS
 *
 * See http://www.atomikos.com/Main/WhichLicenseApplies for details.
 */

package com.atomikos.thread;

import com.atomikos.logging.Logger;
import com.atomikos.logging.LoggerFactory;

public class InterruptedExceptionHelper 
{
	private static final Logger LOGGER = LoggerFactory.createLogger(InterruptedExceptionHelper.class);

	public static void handleInterruptedException ( InterruptedException e ) 
	{
		LOGGER.logWarning ( "Thread interrupted " , e );
		// interrupt again - cf http://www.javaspecialists.co.za/archive/Issue056.html
		Thread.currentThread().interrupt();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy