Package nl.vpro.io.prepr
Class StandalonePreprRepositories
java.lang.Object
nl.vpro.io.prepr.StandalonePreprRepositories
- All Implemented Interfaces:
Iterable<PreprRepository>
,PreprRepositories
Maintains a map of
PreprRepository
. A PreprRepository
connects to precisely one channel. If you need to sync with more than one, this may come in handy.- Since:
- 0.3
- Author:
- Michiel Meeuwissen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StandalonePreprRepositories
Given a map of properties, created a an instant ofStandalonePreprRepositories
.@NonNull Iterator<PreprRepository>
iterator()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface nl.vpro.io.prepr.PreprRepositories
getRepositories
-
Constructor Details
-
StandalonePreprRepositories
-
-
Method Details
-
fromMap
Given a map of properties, created a an instant of
StandalonePreprRepositories
.It will use properties like
prepr.clientId.<CHANNEL>
to determin which
PreprRepository
s most be instantiated and configured with other properties like:prepr.<property>.<CHANNEL>
-
iterator
- Specified by:
iterator
in interfaceIterable<PreprRepository>
-
get
- Specified by:
get
in interfacePreprRepositories
-
toString
-