ForkEvent
in
ForkEvent defines types of events, that can happen when forking the process.
Tags
Table of Contents
- CHILD = "child"
- Resume progress of the child process. This usually gives the library the chance to open new connections, and restart IO threads.
- PARENT = "parent"
- Resume progress of the parent process. Typically parent process could continue using all descriptors that were open before fork process, and also the library will restart background IO threads.
- PREPARE = "prepare"
- Prepare the library for fork() call. This event should be used in the parent process before invoking `pcntl_fork()`. Once \Couchbase\Cluster::notifyFork() the library reaches the safe state when it is ready for fork() syscall (i.e. no background threads running, all operations completed, etc.)
Constants
CHILD
Resume progress of the child process. This usually gives the library the chance to open new connections, and restart IO threads.
public
mixed
CHILD
= "child"
PARENT
Resume progress of the parent process. Typically parent process could continue using all descriptors that were open before fork process, and also the library will restart background IO threads.
public
mixed
PARENT
= "parent"
PREPARE
Prepare the library for fork() call. This event should be used in the parent process before invoking `pcntl_fork()`. Once \Couchbase\Cluster::notifyFork() the library reaches the safe state when it is ready for fork() syscall (i.e. no background threads running, all operations completed, etc.)
public
mixed
PREPARE
= "prepare"