Lines Matching defs:position
125 long position = 0L;
127 Future<Integer> result = ch.write(src, position);
130 // update position
131 position += n;
143 position = 0L;
146 Future<Integer> result = ch.read(dst, position);
150 // update position
151 if (n > 0) position += n;
400 long[] position = new long[nwriters];
403 position[i] = rand.nextInt((int)size);
409 result[i] = ch.write(buf[i], position[i]);
548 // given position
551 long position)
555 // use position as attachment
556 ch.write(src, position, position, new CompletionHandler<Integer,Long>() {
557 public void completed(Integer result, Long position) {
560 long p = position + n;
566 public void failed(Throwable exc, Long position) {
576 long position)
580 // use position as attachment
581 ch.read(dst, position, position, new CompletionHandler<Integer,Long>() {
582 public void completed(Integer result, Long position) {
585 long p = position + n;
591 public void failed(Throwable exc, Long position) {