com.webbfontaine.valuewebb.irms.IrmsEventBus.java Source code

Java tutorial

Introduction

Here is the source code for com.webbfontaine.valuewebb.irms.IrmsEventBus.java

Source

/*
 * Copyrights 2002-2011 Webb Fontaine
 * Developer: Sargis Harutyunyan
 * Date: 23/11/11
 * This software is the proprietary information of Webb Fontaine.
 * Its use is subject to License terms.
 */
package com.webbfontaine.valuewebb.irms;

import com.webbfontaine.valuewebb.irms.eventbus.VWEventBus;
import org.apache.commons.lang3.concurrent.BasicThreadFactory;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import java.util.concurrent.Executors;

@Name("irmsEventBus")
@Scope(ScopeType.APPLICATION)
public class IrmsEventBus extends VWEventBus {

    private static final int N_THREADS = 16;

    public IrmsEventBus() {
        super("IRMS EventBus", Executors.newFixedThreadPool(N_THREADS,
                new BasicThreadFactory.Builder().namingPattern("IRMS-EventBus-%d").build()));
    }

}