Skip to content

Commit

Permalink
Merge branch 'hemus2121-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Luigi R. Viggiano committed Sep 2, 2014
2 parents d00f155 + 8dbf800 commit 2899780
Showing 1 changed file with 3 additions and 3 deletions.
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 2899780

Please sign in to comment.