com.arjuna.ats.internal.arjuna.recovery.Listener.setDaemon()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(7.0k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中com.arjuna.ats.internal.arjuna.recovery.Listener.setDaemon()方法的一些代码示例,展示了Listener.setDaemon()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Listener.setDaemon()方法的具体详情如下:
包路径:com.arjuna.ats.internal.arjuna.recovery.Listener
类名称:Listener
方法名:setDaemon

Listener.setDaemon介绍

暂无

代码示例

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: jbosstm/narayana

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: jbosstm/narayana

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.narayana.arjunacore/arjuna

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: jbosstm/narayana

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjuna

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
  tsLogger.i18NLogger.info_recovery_TransactionStatusManager_1(service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort()));
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.jbossts/jbossjta

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
  tsLogger.i18NLogger.info_recovery_TransactionStatusManager_1(service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort()));
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
  tsLogger.i18NLogger.info_recovery_TransactionStatusManager_1(service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort()));
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjunacore

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
  tsLogger.i18NLogger.info_recovery_TransactionStatusManager_1(service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort()));
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: jboss.jbossts/jbossjts

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
 if (tsLogger.arjLoggerI18N.isInfoEnabled())
 {
   tsLogger.arjLoggerI18N.info("com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1",
         new Object[]{service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort())});
 }
   _listener.start() ;
 }
 catch ( IOException ex )
 {
 tsLogger.arjLoggerI18N.warn("com.arjuna.ats.arjuna.recovery.TransactionStatusManager_2");
 }
}

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

_listener.setDaemon(true);

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjunacore

_listener.setDaemon(true);

代码示例来源:origin: org.jboss.jbossts/jbossjta

_listener.setDaemon(true);

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

_listener.setDaemon(true);

代码示例来源:origin: org.jboss.narayana.arjunacore/arjuna

_listener.setDaemon(true);

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjuna

_listener.setDaemon(true);

代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore

_listener.setDaemon(true);

代码示例来源:origin: jbosstm/narayana

_listener.setDaemon(true);

代码示例来源:origin: org.jboss.teiid/teiid-txn-jbossts

public PeriodicRecovery (boolean threaded)
{
 setDaemon(true);
 initialise();
 // Load the recovery modules that actually do the work.
 loadModules();
 try
 {
 _workerService = new WorkerService(this);
 _listener = new Listener(getServerSocket(), _workerService);
 _listener.setDaemon(true);
 }
 catch (Exception ex)
 {
 if (tsLogger.arjLoggerI18N.isWarnEnabled())
 {
   tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery_9", new Object[]{ex});
 }
 }
 if (threaded)
 {
 start();
 }
 _listener.start();
}

相关文章