public class MultiThreadSyncChannel extends Object implements RequestChannel
RequestChannel in order to group the
requests. It allows best performances with multiples senders.| Modifier and Type | Class and Description |
|---|---|
private static class |
MultiThreadSyncChannel.SyncRound |
| Modifier and Type | Field and Description |
|---|---|
private RequestChannel |
channel
The related RequestChannel.
|
private MultiThreadSyncChannel.SyncRound |
currentRound
Synchronization round.
|
private int |
multiThreadSyncDelay
The maximum time the threads hang if 'multiThreadSync' is true.
|
private int |
multiThreadSyncThreshold
The maximum numbers of threads that hang if 'multiThreadSync' is true.
|
private Vector |
syncRequests
Synchronized requests.
|
| Constructor and Description |
|---|
MultiThreadSyncChannel(RequestChannel rc,
int delay,
int threshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closing() |
void |
connect() |
org.objectweb.joram.shared.security.Identity |
getIdentity() |
org.objectweb.joram.shared.client.AbstractJmsReply |
receive() |
void |
send(org.objectweb.joram.shared.client.AbstractJmsRequest request) |
void |
setTimer(Timer timer) |
private MultiThreadSyncChannel.SyncRound currentRound
private Vector syncRequests
private int multiThreadSyncDelay
private int multiThreadSyncThreshold
private RequestChannel channel
MultiThreadSyncChannel(RequestChannel rc, int delay, int threshold)
public void send(org.objectweb.joram.shared.client.AbstractJmsRequest request)
throws Exception
send in interface RequestChannelExceptionpublic void setTimer(Timer timer)
setTimer in interface RequestChannelpublic void connect()
throws Exception
connect in interface RequestChannelExceptionpublic org.objectweb.joram.shared.client.AbstractJmsReply receive()
throws Exception
receive in interface RequestChannelExceptionpublic void close()
close in interface RequestChannelpublic void closing()
closing in interface RequestChannelpublic org.objectweb.joram.shared.security.Identity getIdentity()
getIdentity in interface RequestChannelCopyright © 2023 ScalAgent D.T.. All rights reserved.