[ 
https://issues.apache.org/jira/browse/QPID-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649703#action_12649703
 ] 

Rajith Attapattu commented on QPID-1479:
----------------------------------------

For starters I have changed the IoSender.java IoReceiver.java and 
AMQSession.java#Dispatcher to use the Thread factory to create the threads they 
require.
The ThreadFactory has two implimentations, the default being the 
java.lang.Threads.
The other is the RealtimeThreadFactory which uses reflection to create threads 
with a specific priority.
-Dqpid.thread_factory=<thread_factory_class> will decide which thread factory 
should be loaded.
-Dqpid.rt_thread_priority=<int> specifies the gloabl real time thread priority 
and defaults to 20.
You could also set individual thread priorities by adding the nessacery 
config+code changes.

I have also changed the Testkit and QpidBench to use the Thread factory so you 
could use them for testing/benchmarking work on RT JVMs.
As for Mina I don't know if I want to spend time on that area as we have found 
the plain IO transport to be better. Infact I believe that we will want to 
phase MINA out at some point.


> Provide a thread abstraction for java client
> --------------------------------------------
>
>                 Key: QPID-1479
>                 URL: https://issues.apache.org/jira/browse/QPID-1479
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>             Fix For: M4
>
>
> In order to provide better support for Qpid users who run the java client on 
> a Real Time JVM it would be nice to have a thread abstraction.
> The thread factory would default to java.lang.Thread and can be switched to 
> javax.realtime.RealtimeThread on an RT JVM.
> I am planning to provide this thread abstraction for the IOSender, IOReceiver 
> and Dispatcher threads in the java client.
> I am also using it in the TestKit and QpidBench to allow these tools to be 
> used more effectively on an RT JVM.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to