folly::ImmutableRequestData

ImmutableRequestData is a folly::RequestData that holds an immutable value. It is thread-safe (a requirement of RequestData) because it is immutable.

Synopsis

Declared in <folly/io/async/Request.h>

template<typename T>
class ImmutableRequestData
    : public folly::RequestData

Base Classes

NameDescription
folly::RequestDataBase class for data that follows an async request through a process.

Member Functions

NameDescription
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.