Serialized Form


Package edu.emory.mathcs.util

Class edu.emory.mathcs.util.PriorityQueue implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reconstitute the ArrayList instance from a stream (that is, deserialize it).


writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Save the state of the instance to a stream (that is, serialize it).

Serial Data:
The length of the array backing the instance is emitted (int), followed by all of its elements (each an Object) in the proper order.
java.io.IOException
Serialized Fields

size

int size
The number of elements in the priority queue.


comparator

java.util.Comparator comparator
The comparator, or null if priority queue uses elements' natural ordering.


Package edu.emory.mathcs.util.concurrent

Class edu.emory.mathcs.util.concurrent.ArrayBlockingQueue implements Serializable

Serialized Fields

items

java.lang.Object[] items
The queued items


count

int count
Number of items in the queue


lock

ReentrantLock lock
Main lock guarding all access


notEmpty

Condition notEmpty
Condition for waiting takes


notFull

Condition notFull
Condition for waiting puts

Class edu.emory.mathcs.util.concurrent.BrokenBarrierException implements Serializable

Class edu.emory.mathcs.util.concurrent.CancellationException implements Serializable

Class edu.emory.mathcs.util.concurrent.ConcurrentHashMap implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reconstitute the ConcurrentHashMap instance from a stream (i.e., deserialize it).


writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Save the state of the ConcurrentHashMap instance to a stream (i.e., serialize it).

Serial Data:
the key (Object) and value (Object) for each key-value mapping, followed by a null pair. The key-value mappings are emitted in no particular order.
java.io.IOException
Serialized Fields

segmentMask

int segmentMask
Mask value for indexing into segments. The upper bits of a key's hash code are used to choose the segment.


segmentShift

int segmentShift
Shift value for indexing within segments.


segments

ConcurrentHashMap.Segment[] segments
The segments, each of which is a specialized hash table

Class edu.emory.mathcs.util.concurrent.CopyOnWriteArrayList implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reconstitute the list from a stream (i.e., deserialize it).


writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Save the state of the list to a stream (i.e., serialize it).

Serial Data:
The length of the array backing the list is emitted (int), followed by all of its elements (each an Object) in the proper order.
java.io.IOException

Class edu.emory.mathcs.util.concurrent.CopyOnWriteArraySet implements Serializable

Serialized Fields

al

CopyOnWriteArrayList al

Class edu.emory.mathcs.util.concurrent.ExecutionException implements Serializable

Class edu.emory.mathcs.util.concurrent.LinkedBlockingQueue implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reconstitute this queue instance from a stream (that is, deserialize it).


writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Save the state to a stream (that is, serialize it).

Serial Data:
The capacity is emitted (int), followed by all of its elements (each an Object) in the proper order, followed by a null
java.io.IOException
Serialized Fields

putGuard_

java.lang.Object putGuard_
Helper monitor. Ensures that only one put at a time executes.


takeGuard_

java.lang.Object takeGuard_
Helper monitor. Protects and provides wait queue for takes


capacity_

int capacity_
Number of elements allowed

Class edu.emory.mathcs.util.concurrent.PriorityBlockingQueue implements Serializable

Serialization Methods

writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Save the state to a stream (that is, serialize it). This merely wraps default serialization within lock. The serialization strategy for items is left to underlying Queue. Note that locking is not needed on deserialization, so readObject is not defined, just relying on default.

Serialized Fields

q

PriorityQueue q

lock

ReentrantLock lock

notEmpty

Condition notEmpty

Class edu.emory.mathcs.util.concurrent.RejectedExecutionException implements Serializable

Class edu.emory.mathcs.util.concurrent.Semaphore implements Serializable

Serialized Fields

impl

Semaphore.Impl impl

Class edu.emory.mathcs.util.concurrent.SynchronousQueue implements Serializable

Serialized Fields

qlock

ReentrantLock qlock
Lock protecting both wait queues


waitingProducers

SynchronousQueue.WaitQueue waitingProducers
Queue holding waiting puts


waitingConsumers

SynchronousQueue.WaitQueue waitingConsumers
Queue holding waiting takes

Class edu.emory.mathcs.util.concurrent.TimeoutException implements Serializable

Class edu.emory.mathcs.util.concurrent.TimeUnit implements Serializable

Serialized Fields

index

int index
the index of this unit


name

java.lang.String name
name of this unit


Package edu.emory.mathcs.util.concurrent.locks

Class edu.emory.mathcs.util.concurrent.locks.ReentrantLock implements Serializable

Serialized Fields

impl

ReentrantLock.Impl impl

Class edu.emory.mathcs.util.concurrent.locks.ReentrantReadWriteLock implements Serializable

Serialized Fields

activeReaders_

int activeReaders_

activeWriter_

java.lang.Thread activeWriter_

waitingReaders_

int waitingReaders_

waitingWriters_

int waitingWriters_

readerLock_

ReentrantReadWriteLock.ReaderLock readerLock_

writerLock_

ReentrantReadWriteLock.WriterLock writerLock_

writeHolds_

int writeHolds_
Number of acquires on write lock by activeWriter_ thread


readers_

java.util.HashMap readers_
Number of acquires on read lock by any reader thread


Package edu.emory.mathcs.util.concurrent.atomic

Class edu.emory.mathcs.util.concurrent.atomic.AtomicBoolean implements Serializable

Serialized Fields

value

int value

Class edu.emory.mathcs.util.concurrent.atomic.AtomicInteger implements Serializable

Serialized Fields

value

int value

Class edu.emory.mathcs.util.concurrent.atomic.AtomicIntegerArray implements Serializable

Serialized Fields

array

int[] array

Class edu.emory.mathcs.util.concurrent.atomic.AtomicLong implements Serializable

Serialized Fields

value

long value

Class edu.emory.mathcs.util.concurrent.atomic.AtomicLongArray implements Serializable

Serialized Fields

array

long[] array

Class edu.emory.mathcs.util.concurrent.atomic.AtomicReference implements Serializable

Serialized Fields

value

java.lang.Object value

Class edu.emory.mathcs.util.concurrent.atomic.AtomicReferenceArray implements Serializable

Serialized Fields

array

java.lang.Object[] array


Package edu.emory.mathcs.util.concurrent.helpers

Class edu.emory.mathcs.util.concurrent.helpers.FIFOWaitQueue implements Serializable