예제 #1
0
  private void reset(int op) {
    done();
    _buffer.reset();
    set(_buffer);

    _id = ID.getAndIncrement();

    writeInt(0); // length: will set this later
    writeInt(_id);
    writeInt(0); // response to
    writeInt(op);
  }
예제 #2
0
 OutMessage(Mongo m) {
   _mongo = m;
   _buffer = _mongo == null ? new PoolOutputBuffer() : _mongo._bufferPool.get();
   set(_buffer);
 }