-
-
-
Serialization Methods
-
readExternal
- Parameters:
in
- Stream which used to read data.
- Throws:
IOException
- If unable to de-serialize particular data member.
ClassNotFoundException
-
writeExternal
- Parameters:
out
- Stream which writes serialized bytes.
- Throws:
IOException
- If unable to serialize particular member.
-
-
Serialized Fields
-
readLock
Lock readLock
-
readWriteLock
ReadWriteLock readWriteLock
We use a read write lock to improve concurrency while avoiding concurrent modification
exceptions. We allow concurrent reads and avoid concurrent reads and modifications
ReentrantReadWriteLock supports a maximum of 65535 recursive write locks and 65535 read locks
-
tokens
Map tokens
-
writeLock
Lock writeLock
-
-
Serialization Methods
-
readExternal
Implementing de-serialization logic in accordance with the serialization logic.
- Parameters:
in
- Stream which used to read data.
- Throws:
IOException
- If unable to de-serialize particular data member.
ClassNotFoundException
-
writeExternal
Implementing serialize logic according to our own protocol. We had to follow this, because
OMElement class is not serializable. Making OMElement serializable will have an huge impact
on other components. Therefore implementing serialization logic according to a manual
protocol.
- Parameters:
out
- Stream which writes serialized bytes.
- Throws:
IOException
- If unable to serialize particular member.
-
- serialVersionUID:
- -445341784514373965L
-
-
- serialVersionUID:
- 8674795537585339704L
-
-
- serialVersionUID:
- 5904800255533588133L