GRPC C++  1.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
grpc::WriteOptions Class Reference

Per-message write options. More...

#include <call.h>

Public Member Functions

 WriteOptions ()
 
 WriteOptions (const WriteOptions &other)
 
void Clear ()
 Clear all flags. More...
 
uint32_t flags () const
 Returns raw flags bitset. More...
 
WriteOptionsset_no_compression ()
 Sets flag for the disabling of compression for the next message write. More...
 
WriteOptionsclear_no_compression ()
 Clears flag for the disabling of compression for the next message write. More...
 
bool get_no_compression () const
 Get value for the flag indicating whether compression for the next message write is forcefully disabled. More...
 
WriteOptionsset_buffer_hint ()
 Sets flag indicating that the write may be buffered and need not go out on the wire immediately. More...
 
WriteOptionsclear_buffer_hint ()
 Clears flag indicating that the write may be buffered and need not go out on the wire immediately. More...
 
bool get_buffer_hint () const
 Get value for the flag indicating that the write may be buffered and need not go out on the wire immediately. More...
 
WriteOptionsset_corked ()
 corked bit: aliases set_buffer_hint currently, with the intent that set_buffer_hint will be removed in the future More...
 
WriteOptionsclear_corked ()
 
bool is_corked () const
 
WriteOptionsset_last_message ()
 last-message bit: indicates this is the last message in a stream client-side: makes Write the equivalent of performing Write, WritesDone in a single step server-side: hold the Write until the service handler returns (sync api) or until Finish is called (async api) More...
 
WriteOptionsclear_last_messsage ()
 Clears flag indicating that this is the last message in a stream, disabling coalescing. More...
 
bool is_last_message () const
 Get value for the flag indicating that this is the last message, and should be coalesced with trailing metadata. More...
 
WriteOptionsoperator= (const WriteOptions &rhs)
 

Detailed Description

Per-message write options.

Constructor & Destructor Documentation

grpc::WriteOptions::WriteOptions ( )
inline
grpc::WriteOptions::WriteOptions ( const WriteOptions other)
inline

Member Function Documentation

void grpc::WriteOptions::Clear ( )
inline

Clear all flags.

WriteOptions& grpc::WriteOptions::clear_buffer_hint ( )
inline

Clears flag indicating that the write may be buffered and need not go out on the wire immediately.

See Also
GRPC_WRITE_BUFFER_HINT
WriteOptions& grpc::WriteOptions::clear_corked ( )
inline
WriteOptions& grpc::WriteOptions::clear_last_messsage ( )
inline

Clears flag indicating that this is the last message in a stream, disabling coalescing.

WriteOptions& grpc::WriteOptions::clear_no_compression ( )
inline

Clears flag for the disabling of compression for the next message write.

See Also
GRPC_WRITE_NO_COMPRESS
uint32_t grpc::WriteOptions::flags ( ) const
inline

Returns raw flags bitset.

bool grpc::WriteOptions::get_buffer_hint ( ) const
inline

Get value for the flag indicating that the write may be buffered and need not go out on the wire immediately.

See Also
GRPC_WRITE_BUFFER_HINT
bool grpc::WriteOptions::get_no_compression ( ) const
inline

Get value for the flag indicating whether compression for the next message write is forcefully disabled.

See Also
GRPC_WRITE_NO_COMPRESS
bool grpc::WriteOptions::is_corked ( ) const
inline
bool grpc::WriteOptions::is_last_message ( ) const
inline

Get value for the flag indicating that this is the last message, and should be coalesced with trailing metadata.

See Also
GRPC_WRITE_LAST_MESSAGE
WriteOptions& grpc::WriteOptions::operator= ( const WriteOptions rhs)
inline
WriteOptions& grpc::WriteOptions::set_buffer_hint ( )
inline

Sets flag indicating that the write may be buffered and need not go out on the wire immediately.

See Also
GRPC_WRITE_BUFFER_HINT
WriteOptions& grpc::WriteOptions::set_corked ( )
inline

corked bit: aliases set_buffer_hint currently, with the intent that set_buffer_hint will be removed in the future

WriteOptions& grpc::WriteOptions::set_last_message ( )
inline

last-message bit: indicates this is the last message in a stream client-side: makes Write the equivalent of performing Write, WritesDone in a single step server-side: hold the Write until the service handler returns (sync api) or until Finish is called (async api)

WriteOptions& grpc::WriteOptions::set_no_compression ( )
inline

Sets flag for the disabling of compression for the next message write.

See Also
GRPC_WRITE_NO_COMPRESS

The documentation for this class was generated from the following file: