@Test public void testClose() { behavior.close(); final InternalCommand<ShardBackendInfo> internalCommand = clientActorProbe.expectMsgClass(InternalCommand.class); internalCommand.execute(behavior); try { behavior.createLocalHistory(); Assert.fail("Behavior is closed and shouldn't allow to create new history."); } catch (final IllegalStateException e) { } }
@Override public void close() { super.close(); context().executeInActor(this::shutdown); }
AbstractDataStoreClientBehavior extends ClientActorBehavior<ShardBackendInfo> implements DataStoreClient { @Override public void close() { super.close(); context().executeInActor(this::shutdown); } }
AbstractDataStoreClientBehavior extends ClientActorBehavior<ShardBackendInfo> implements DataStoreClient { @Override public void close() { super.close(); context().executeInActor(this::shutdown); } AbstractDataStoreClientBehavior(final ClientActorContext context,
            final BackendInfoResolver<ShardBackendInfo> resolver); }
AbstractDataStoreClientBehavior extends ClientActorBehavior<ShardBackendInfo> implements DataStoreClient { @Override public void close() { super.close(); context().executeInActor(this::shutdown); } AbstractDataStoreClientBehavior(final ClientActorContext context,
            final BackendInfoResolver<ShardBackendInfo> resolver); @Override final ClientLocalHistory createLocalHistory(); @Override final ClientTransaction createTransaction(); @Override final ClientSnapshot createSnapshot(); @Override void close(); }
AbstractDataStoreClientBehavior extends ClientActorBehavior<ShardBackendInfo> implements DataStoreClient { @Override public void close() { super.close(); context().executeInActor(this::shutdown); } AbstractDataStoreClientBehavior(final ClientActorContext context,
            final BackendInfoResolver<ShardBackendInfo> resolver); @Override final ClientLocalHistory createLocalHistory(); @Override final ClientTransaction createTransaction(); @Override final ClientSnapshot createSnapshot(); @Override void close();  }