Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hemus2121/owner into hemu…
Browse files Browse the repository at this point in the history
…s2121-master
  • Loading branch information
Luigi R. Viggiano committed Sep 2, 2014
2 parents d00f155 + e2480d8 commit 847d7cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion owner-site/site/docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ You can also do the same implementing the Accessible interface, that declares
the `list()` methods for you:

```java
public interface SampleConfig extends Config, Accessible {
public interface SampleConfig extends Accessible {
@Key("server.http.port")
@DefaultValue("80")
int httpPort();
Expand Down
6 changes: 3 additions & 3 deletions owner-site/site/docs/reload.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,19 @@ interface MyConfig extends Config { ... }

// Will check for file changes every 500 millis.
// It will use SYNC hot reload.
@HotReload(500, unit = TimeUnit.MILLISECONDS);
@HotReload(value=500, unit = TimeUnit.MILLISECONDS)
@Sources("file:foo/bar/baz.properties")
interface MyConfig extends Config { ... }

// Will use ASYNC reload type: will span a
// separate thread that will check for file
// changes every 5 seconds (default)
@HotReload(type=HotReloadType.ASYNC);
@HotReload(type=HotReloadType.ASYNC)
@Sources("file:foo/bar/baz.properties")
interface MyConfig extends Config { ... }

// Will use ASYNC reload type and will check every 2 seconds.
@HotReload(2, type=HotReloadType.ASYNC);
@HotReload(value=2, type=HotReloadType.ASYNC)
@Sources("file:foo/bar/baz.properties")
interface MyConfig extends Config { ... }
```
Expand Down

0 comments on commit 847d7cf

Please sign in to comment.