public final class FkHitRefresh extends Object implements Fork
The class is immutable and thread-safe.
TkFork
Constructor and Description |
---|
FkHitRefresh(File file,
List<String> cmd,
Take tke)
Ctor.
|
FkHitRefresh(File file,
Runnable cmd,
Take tke)
Ctor.
|
FkHitRefresh(File file,
String cmd,
Take tke)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Opt<Response> |
route(Request req)
Process this request or ignore it.
|
public FkHitRefresh(File file, String cmd, Take tke)
file
- Directory to watchcmd
- Command to executetke
- Targetpublic FkHitRefresh(File file, List<String> cmd, Take tke)
file
- Directory to watchcmd
- Command to executetke
- Targetpublic Opt<Response> route(Request req) throws IOException
Fork
route
in interface Fork
req
- RequestIOException
- If failsCopyright © 2015–2018 Take. All rights reserved.