Modifier and Type | Class and Description |
---|---|
private static class | AbstractPoller.Request
Encapsulates a request (command) to the poller thread. |
private static enum | AbstractPoller.RequestType
Types of request that the poller thread must handle |
Modifier and Type | Field and Description |
---|---|
private final ArrayDeque | |
private boolean |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
pack-priv final void | |
pack-priv final void | |
pack-priv abstract void | |
pack-priv abstract void | |
pack-priv abstract Object | implRegister(Path path, Set<? extends WatchEvent.
Executed by poller thread to register directory for changes |
private Object | invoke(AbstractPoller.
Enqueues request to poller thread and waits for result |
pack-priv boolean | Returns: true if poller thread should shutdownInvoked by poller thread to process all pending requests |
pack-priv final WatchKey | register(Path dir, WatchEvent.
Requests, and waits on, poller thread to register given file. |
public void | |
pack-priv abstract void |
requests | back to summary |
---|---|
private final ArrayDeque<AbstractPoller. |
shutdown | back to summary |
---|---|
private boolean shutdown |
AbstractPoller | back to summary |
---|---|
protected AbstractPoller() |
cancel | back to summary |
---|---|
pack-priv final void cancel(WatchKey key) Cancels, and waits on, poller thread to cancel given key. |
close | back to summary |
---|---|
pack-priv final void close() throws IOException Shutdown poller thread |
implCancelKey | back to summary |
---|---|
pack-priv abstract void implCancelKey(WatchKey key) Executed by poller thread to cancel key |
implCloseAll | back to summary |
---|---|
pack-priv abstract void implCloseAll() Executed by poller thread to shutdown and cancel all keys |
implRegister | back to summary |
---|---|
pack-priv abstract Object implRegister(Path path, Set<? extends WatchEvent. Executed by poller thread to register directory for changes |
invoke | back to summary |
---|---|
private Object invoke(AbstractPoller. Enqueues request to poller thread and waits for result |
processRequests | back to summary |
---|---|
pack-priv boolean processRequests() Invoked by poller thread to process all pending requests
|
register | back to summary |
---|---|
pack-priv final WatchKey register(Path dir, WatchEvent. Requests, and waits on, poller thread to register given file. |
start | back to summary |
---|---|
public void start() Starts the poller thread
|
wakeup | back to summary |
---|---|
pack-priv abstract void wakeup() throws IOException Wakeup poller thread so that it can service pending requests |
Modifier and Type | Field and Description |
---|---|
private boolean | |
private final Object[] | |
private Object | |
private final AbstractPoller. |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv Object | |
pack-priv Object[] | |
pack-priv void | |
pack-priv AbstractPoller. |
completed | back to summary |
---|---|
private boolean completed |
params | back to summary |
---|---|
private final Object[] params |
result | back to summary |
---|---|
private Object result |
type | back to summary |
---|---|
private final AbstractPoller. |
Request | back to summary |
---|---|
pack-priv Request(AbstractPoller. |
awaitResult | back to summary |
---|---|
pack-priv Object awaitResult() Await completion of the request. The return value is the result of the request. |
parameters | back to summary |
---|---|
pack-priv Object[] parameters() |
release | back to summary |
---|---|
pack-priv void release(Object result) |
type | back to summary |
---|---|
pack-priv AbstractPoller. |
Modifier and Type | Field and Description |
---|---|
public static final AbstractPoller. | |
public static final AbstractPoller. | |
public static final AbstractPoller. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static AbstractPoller. | |
public static AbstractPoller. |
CANCEL | back to summary |
---|---|
public static final AbstractPoller. |
CLOSE | back to summary |
---|---|
public static final AbstractPoller. |
REGISTER | back to summary |
---|---|
public static final AbstractPoller. |
RequestType | back to summary |
---|---|
private RequestType() |
valueOf | back to summary |
---|---|
public static AbstractPoller. |
values | back to summary |
---|---|
public static AbstractPoller. |