db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6891) Investigate concurrency improvements to DerbyObservable and DerbyObserver
Date Fri, 24 Jun 2016 10:54:16 GMT

    [ https://issues.apache.org/jira/browse/DERBY-6891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15348133#comment-15348133
] 

Knut Anders Hatlen commented on DERBY-6891:
-------------------------------------------

The patch looks good to me. Now that all the methods synchronize on the DerbyObservable instance,
it should be safe to replace the Vector with an unsynchronized ArrayList.

> Investigate concurrency improvements to DerbyObservable and DerbyObserver
> -------------------------------------------------------------------------
>
>                 Key: DERBY-6891
>                 URL: https://issues.apache.org/jira/browse/DERBY-6891
>             Project: Derby
>          Issue Type: Improvement
>          Components: Store
>            Reporter: Rick Hillegas
>         Attachments: derby-6891-01-aa-synchronizeMethods.diff
>
>
> As part of derby-6856, we introduced a pair of classes which manage callbacks between
classes in the Store layer. The classes are DerbyObservable and DerbyObserver. They replace
the deprecated Observer and Observable classes in the JVM and allow Derby to build without
deprecation warnings. Right now, callbacks are managed by a Vector. It is quite likely that
the concurrency of these classes (and therefore of the Store layer) could be boosted by using
some mechanism from java.util.concurrent.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message