ImmutableRequestData is a folly::RequestData that holds an immutable value. It is thread-safe (a requirement of RequestData) because it is immutable.
Declared in <folly/io/async/Request.h>
template<typename T>
class ImmutableRequestData
: public folly::RequestData
| Name | Description |
|---|---|
folly::RequestData | Base class for data that follows an async request through a process. |
| Name | Description |
|---|---|
ImmutableRequestData [constructor] | Constructs the immutable value in place. |
hasCallback [virtual] | Returns whether this instance has set/unset callbacks. |
onClear [virtual] | Callback executed exactly once when the last reference is released. |
onSet [virtual] | Callback executed when setting the RequestContext. |
onUnset [virtual] | Callback executed when unsetting the RequestContext. |
refCount | Returns the current reference count, for debugging. |
value | Returns the held immutable value. |