SequencingManager
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Queue | getPreallocated(String sequenceName)
Returns the Queue of sequences from the global sequences for the seqName. |
| public void | |
| public void | |
| public boolean | isConnected()
Implements org. |
| public void | onConnect()
Implements org. |
| public void | onDisconnect()
Implements org. |
| public void | setPreallocated(String seqName, Vector<?> sequences)
Add the preallocated sequences to the global sequence pool for the sequence name. |
| preallocatedSequences | back to summary |
|---|---|
| protected Map<String, Queue<Object>> preallocatedSequences | |
| PreallocationHandler | back to summary |
|---|---|
| public PreallocationHandler() | |
| getPreallocated | back to summary |
|---|---|
| public Queue Returns the Queue of sequences from the global sequences for the seqName. If there is not one, a new empty Queue is registered. This queue is thread-safe, and threads can concurrent poll the queue to remove the first element. | |
| initializePreallocated | back to summary |
|---|---|
| public void initializePreallocated() Removes all preallocated objects. A dangerous method to use in multithreaded environment method, but so handy for testing. | |
| initializePreallocated | back to summary |
|---|---|
| public void initializePreallocated(String seqName) Removes all preallocated objects for the specified seqName. A dangerous method to use in multithreaded environment method, but so handy for testing. | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Implements org. Doc from org. INTERNAL: Indicates whether the object is connected or not.
| |
| onConnect | back to summary |
|---|---|
| public void onConnect() Implements org. Doc from org. INTERNAL: Called when the object is connected (logged in).
| |
| onDisconnect | back to summary |
|---|---|
| public void onDisconnect() Implements org. Doc from org. INTERNAL: Called when the object is disconnected (logged out).
| |
| setPreallocated | back to summary |
|---|---|
| public void setPreallocated(String seqName, Vector<?> sequences) Add the preallocated sequences to the global sequence pool for the sequence name. Although this method is thread-safe, a lock should typically be obtained from the sequence manager before calling this method, to ensure sequential numbers. | |