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

gov.nist.javax.sip.ThreadAffinityIdentifier Maven / Gradle / Ivy

There is a newer version: 1.3.0-91
Show newest version
package android.gov.nist.javax.sip;

/**
 * All tasks that requires to be under ConcurrenyControlMode have to extend
 * this interface so they can be assigned to proper thread.
 * 
 * The object hash will be used by the thread pool to consistently assign all
 * tasks to the same thread.
 * 
 * The afinnity object will be added to MDC vars automatically behind the scenes.
 * 
 */
public interface ThreadAffinityIdentifier {
    /**
     * 
     * @return the object used to hash against the thread pool.
     */
    public Object getThreadHash();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy