Immutable API wrappers?

16 просмотров
Перейти к первому непрочитанному сообщению

Vladimir Leberstein

не прочитано,
9 июн. 2015 г., 13:19:3709.06.2015
– orient-...@googlegroups.com

Hi! First of all: OrientDb is fantastic! Keep up the good work :)
My issue is not directly related to OrientDb but still.
I'm using OrientDb java API from Scala and Akka and my use case implies that single transaction(which is bound to thread-dependant database instance and hence is contained inside special holder actor) have to be accessed from number of other actors. My initial idea was to just create simple message-based wrappers for necessary OrientDb functionality(e.g. CreateV(klass: String, props: Map[String, Any]) for vertex creation and so on) however this doesn't work quite well for requests which should respond with OrientDb class instances(e.g. SearchResult(content: Set[ODocument])) cause they're mutable and not thread-safe.
I've noticed that there is OImmutableRecordId and it makes me ask before I start implementing everything myself: are there any plans to add immutable wrappers for other OrietnDb data structures? Or am I missing something?

Thanks in advance!
Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений