Example usage for io.netty.handler.codec.memcache.binary DefaultBinaryMemcacheRequest DefaultBinaryMemcacheRequest

List of usage examples for io.netty.handler.codec.memcache.binary DefaultBinaryMemcacheRequest DefaultBinaryMemcacheRequest

Introduction

In this page you can find the example usage for io.netty.handler.codec.memcache.binary DefaultBinaryMemcacheRequest DefaultBinaryMemcacheRequest.

Prototype

public DefaultBinaryMemcacheRequest() 

Source Link

Document

Create a new DefaultBinaryMemcacheRequest with the header only.

Usage

From source file:com.couchbase.client.core.endpoint.binary.BinaryCodec.java

License:Open Source License

/**
 * Creates the actual protocol level request for an incoming bucket config request.
 *
 * @return the built protocol request.//from w  w w. j a  va 2  s.  c  o  m
 */
private BinaryMemcacheRequest handleGetBucketConfigRequest() {
    BinaryMemcacheRequest msg = new DefaultBinaryMemcacheRequest();
    msg.setOpcode((byte) 0xb5);
    return msg;
}

From source file:com.couchbase.client.core.endpoint.binary.BinarySaslClient.java

License:Open Source License

/**
 * Helper method to kick off the negotiation process.
 *
 * The first request against the server asks for a list of supported mechanisms.
 *//*from  ww  w. j  ava  2  s  . c om*/
private void negotiate() {
    ctx.writeAndFlush(new DefaultBinaryMemcacheRequest().setOpcode(SASL_LIST_MECHS_OPCODE));
}