List of usage examples for io.netty.handler.codec.memcache.binary DefaultBinaryMemcacheRequest DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest()
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)); }