Hermes  0.9.5-beta
Hierarchical Distributed I/O Buffering System
hermes::api::WriteOnlyTrait Struct Reference

Marks the Blobs in a VBucket as write-only. More...

#include <traits.h>

Inheritance diagram for hermes::api::WriteOnlyTrait:
Collaboration diagram for hermes::api::WriteOnlyTrait:

Public Member Functions

void onAttach (HermesPtr hermes, VBucketID id, Trait *trait)
 Currently a no-op.
 
void onDetach (HermesPtr hermes, VBucketID id, Trait *trait)
 Currently a no-op.
 
void onLink (HermesPtr hermes, TraitInput &input, Trait *trait)
 
void onUnlink (HermesPtr hermes, TraitInput &input, Trait *trait)
 Currently a no-op.
 
- Public Member Functions inherited from hermes::api::Trait
 Trait ()
 Default constructor.
 
 Trait (TraitID id, const std::vector< TraitID > &conflict_traits, TraitType type)
 Construct a Trait. More...
 

Additional Inherited Members

- Public Attributes inherited from hermes::api::Trait
TraitID id
 
std::vector< TraitIDconflict_traits
 
TraitType type
 
OnAttachCallback onAttachFn
 
OnAttachCallback onDetachFn
 
OnLinkCallback onLinkFn
 
OnLinkCallback onUnlinkFn
 
OnLinkCallback onGetFn
 

Detailed Description

Marks the Blobs in a VBucket as write-only.

If we know that certain Blobs are write-only, we can asynchronously and eagerly flush buffered data to the final destination.

Member Function Documentation

◆ onLink()

void hermes::api::WriteOnlyTrait::onLink ( HermesPtr  hermes,
TraitInput input,
Trait trait 
)

a binding function to run on link event

Here is the call graph for this function:

The documentation for this struct was generated from the following files: