public class PrepareHandle extends Handle
See Perpare handle
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the handle and free up any resources that may be held by it.
|
void |
setCloseCallback(CloseCallback callback)
Attach a
CloseCallback. |
void |
setPrepareCallback(PrepareCallback callback)
Attach a
PrepareCallback. |
int |
start()
Starts the prepare handle with the callback specified
setPrepareCallback(PrepareCallback). |
int |
stop()
Stop the handle, the callback will no longer be called.
|
public void setPrepareCallback(PrepareCallback callback)
PrepareCallback.callback - A Callback, which will be invoked once per loop iteration,
right before polling for i/o.public void setCloseCallback(CloseCallback callback)
CloseCallback.callback - A Callback, which will be invoked when check handle is
closed.public int start()
setPrepareCallback(PrepareCallback).0 on success, or an error code < 0 on failure.public int stop()
0 on success, or an error code < 0 on failure.public void close()
Copyright © 2021 WebFolder. All rights reserved.