Multiverse transactional datastructures
Peter Veentjer wrote:
Available collections:
- TransactionalLinkedList (also implements BlockingQueue and BlockingDeque)
- TransactionalArrayList
- TransactionalReferenceArray
- TransactionalTreeMap (also implements ConcurrentMap but doesn't
balance nodes yet )
- TransactionalTreeSet
- TransactionalThreadPoolExecutor.
- Transactional primitives (same as a transactional reference but now
with a primitive to prevent unwanted autoboxing
All implementation can be used as drop-in replacement for existing
java collection interfaces. The preinstrumented
snapshot jar already is available from the repository.
If you put some Scala magic on top for creating instances, you can use
them without relying on Multiverse
(although these classes also implement a Multiverse specific interface
that exposes additional functionality
not available in the java interfaces).
In the next release I will add TransactionalHashMap,
TransactionHasSet, TransactionalSkipList and others.
Available collections:
- TransactionalLinkedList (also implements BlockingQueue and BlockingDeque)
- TransactionalArrayList
- TransactionalReferenceArray
- TransactionalTreeMap (also implements ConcurrentMap but doesn't
balance nodes yet )
- TransactionalTreeSet
- TransactionalThreadPoolExecutor.
- Transactional primitives (same as a transactional reference but now
with a primitive to prevent unwanted autoboxing
All implementation can be used as drop-in replacement for existing
java collection interfaces. The preinstrumented
snapshot jar already is available from the repository.
If you put some Scala magic on top for creating instances, you can use
them without relying on Multiverse
(although these classes also implement a Multiverse specific interface
that exposes additional functionality
not available in the java interfaces).
In the next release I will add TransactionalHashMap,
TransactionHasSet, TransactionalSkipList and others.
Leave a comment
on 2010-06-03 00:35 *
By Peter Vlugter
Assigned to set to pvlugter
Status changed from New to Accepted
on 2010-06-23 06:34 *
By Peter Vlugter
There are type aliases for some of the Multiverse data structures now. Some of the structures could not be created from Scala - seemed to be something with varargs constructors. Need to explore.
Are you still planning on working on this?
on 2010-09-02 22:43 *
By Peter Vlugter
Yes, I'll take another look at the problem that I hit.
Moving to backlog, postponed for 1.1 due to Multiverse 0.7 availability
on 2010-10-28 13:15 *
By Jonas Bonér
Status on this one? Will it make 1.0?
on 2010-10-29 00:01 *
By Peter Vlugter
Some of the transactional datastructures are there already (since 0.10 I think). The ones with varargs constructors can't be created from Scala because of the Multiverse transaction that is added after the varargs - as discussed previously on the list. I'll move it back to the backlog.
on 2011-03-03 16:44 *
By Jonas Bonér
Milestone changed from 1.1 to 1.2
Status changed from Accepted to Invalid