Sets and retrieves the EventBase associated with a request via RequestContext.

Synopsis

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

class RequestEventBase
    : public RequestData

Description

See Request.h for that mechanism.

Base Classes

Name

Description

RequestData

Base class for data that follows an async request through a process.

Member Functions

Name

Description

hasCallback [virtual]

Returns whether this request data has a callback.

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.

Static Member Functions

Name

Description

get

Returns the EventBase stored on the current RequestContext, or null.

set

Stores the given EventBase on the current RequestContext.

Created with MrDocs