@Override
public void onDatastoreContextUpdated(DatastoreContextFactory contextFactory) {
- LOG.info("DatastoreContext updated for data store {}", actorContext.getDataStoreType());
+ LOG.info("DatastoreContext updated for data store {}", actorContext.getDataStoreName());
actorContext.setDatastoreContext(contextFactory);
datastoreConfigMXBean.setContext(contextFactory.getBaseDatastoreContext());
@Override
public void close() {
+ LOG.info("Closing data store {}", type);
+
if (datastoreConfigMXBean != null) {
datastoreConfigMXBean.unregisterMBean();
}
}
}
- private ActorRef createShardManager(ActorSystem actorSystem, ShardManager.Builder builder, String shardDispatcher,
- String shardManagerId){
+ private static ActorRef createShardManager(ActorSystem actorSystem, ShardManager.Builder builder,
+ String shardDispatcher, String shardManagerId) {
Exception lastException = null;
for(int i=0;i<100;i++) {
try {
return actorSystem.actorOf(builder.props().withDispatcher(shardDispatcher).withMailbox(
- ActorContext.MAILBOX), shardManagerId);
+ ActorContext.BOUNDED_MAILBOX), shardManagerId);
} catch (Exception e){
lastException = e;
Uninterruptibles.sleepUninterruptibly(100, TimeUnit.MILLISECONDS);