public final class FkHitRefresh extends Object implements Fork.AtTake
The class is immutable and thread-safe.
TsFork
Fork.AtResponse, Fork.AtTake
Constructor and Description |
---|
FkHitRefresh(File file,
List<String> cmd,
Target<Request> tgt)
Ctor.
|
FkHitRefresh(File file,
Runnable cmd,
Take take)
Ctor.
|
FkHitRefresh(File file,
Runnable cmd,
Takes takes)
Ctor.
|
FkHitRefresh(File file,
Runnable cmd,
Target<Request> tgt)
Ctor.
|
FkHitRefresh(File file,
String cmd,
Take take)
Ctor.
|
FkHitRefresh(File file,
String cmd,
Takes takes)
Ctor.
|
FkHitRefresh(File file,
String cmd,
Target<Request> tgt)
Ctor.
|
public FkHitRefresh(File file, String cmd, Take take) throws IOException
file
- Directory to watchcmd
- Command to executetake
- TakeIOException
- If failspublic FkHitRefresh(File file, Runnable cmd, Take take) throws IOException
file
- Directory to watchcmd
- Command to executetake
- TakeIOException
- If failspublic FkHitRefresh(File file, String cmd, Takes takes) throws IOException
file
- Directory to watchcmd
- Command to executetakes
- TakesIOException
- If failspublic FkHitRefresh(File file, Runnable cmd, Takes takes) throws IOException
file
- Directory to watchcmd
- Command to executetakes
- TakesIOException
- If failspublic FkHitRefresh(File file, String cmd, Target<Request> tgt) throws IOException
file
- Directory to watchcmd
- Command to executetgt
- TargetIOException
- If failspublic FkHitRefresh(File file, List<String> cmd, Target<Request> tgt) throws IOException
file
- Directory to watchcmd
- Command to executetgt
- TargetIOException
- If failspublic FkHitRefresh(File file, Runnable cmd, Target<Request> tgt) throws IOException
file
- Directory to watchcmd
- Command to executetgt
- TargetIOException
- If failspublic Iterator<Take> route(Request req) throws IOException
Fork
route
in interface Fork<Take>
req
- RequestIOException
- If failsCopyright © 2015 Takes. All rights reserved.