public class CheckHandle extends Handle
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the handle and free up any resources that may be held by it.
|
void |
setCheckCallback(CheckCallback callback)
Attach a
CheckCallback. |
void |
setCloseCallback(CloseCallback callback)
Attach a
CloseCallback. |
int |
start()
Starts the handle with the callback specified.
|
int |
stop()
Stop the handle, the callback will no longer be called.
|
public void setCheckCallback(CheckCallback callback)
CheckCallback.callback - A Callback, which will be invoked once per loop iteration,
right after IllegalStateException - if this method called more than once.public void setCloseCallback(CloseCallback callback)
CloseCallback.callback - A Callback, which will be invoked when check handle is
closed.IllegalStateException - if this method called more than once.public int start()
0 on success, or an error code < 0 on failure.#setCheckCallback(CheckCallback)}public int stop()
0 on success, or an error code < 0 on failure.public void close()
CloseCallback callback will be invoked right before the close.
#setCloseCallback(CloseCallback)}Copyright © 2021 WebFolder. All rights reserved.