/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | AsynchronousFileChannelImpl.java | 109 A attachment, 125 A attachment, 130 implLock(position, size, shared, attachment, handler); 213 A attachment, 224 A attachment, 229 implRead(dst, position, attachment, handler); 234 A attachment, 246 A attachment, 251 implWrite(src, position, attachment, handler); 106 implLock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument 122 lock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument 211 implRead(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument 222 read(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument 232 implWrite(ByteBuffer src, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument 244 write(ByteBuffer src, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument
|
H A D | AsynchronousServerSocketChannelImpl.java | 118 implAccept(Object attachment, argument 129 public final <A> void accept(A attachment, argument 134 implAccept(attachment, (CompletionHandler<AsynchronousSocketChannel,Object>)handler);
|
H A D | AsynchronousSocketChannelImpl.java | 194 A attachment, 204 A attachment, 209 implConnect(remote, attachment, handler); 220 A attachment, 290 A attachment, 297 read(false, dst, null, timeout, unit, attachment, handler); 306 A attachment, 318 read(true, null, bufs, timeout, unit, attachment, handler); 329 A attachment, 394 A attachment, 193 implConnect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler) argument 203 connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler) argument 215 implRead(boolean isScatteringRead, ByteBuffer dst, ByteBuffer[] dsts, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument 287 read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) argument 301 read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument 324 implWrite(boolean isGatheringWrite, ByteBuffer src, ByteBuffer[] srcs, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument 391 write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) argument 403 write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument [all...] |
H A D | DirectBuffer.java | 35 public Object attachment(); method in interface:DirectBuffer
|
H A D | Invoker.java | 121 A attachment, 126 handler.completed(value, attachment); 128 handler.failed(exc, attachment); 153 A attachment, 158 Invoker.invokeUnchecked(handler, attachment, result, exc); 168 A attachment, 186 invokeDirect(thisGroupAndInvokeCount, handler, attachment, result, exc); 189 invokeIndirectly(channel, handler, attachment, result, exc); 195 handler, attachment, result, exc); 208 final A attachment, 120 invokeUnchecked(CompletionHandler<V,? super A> handler, A attachment, V value, Throwable exc) argument 151 invokeDirect(GroupAndInvokeCount myGroupAndInvokeCount, CompletionHandler<V,? super A> handler, A attachment, V result, Throwable exc) argument 166 invoke(AsynchronousChannel channel, CompletionHandler<V,? super A> handler, A attachment, V result, Throwable exc) argument 206 invokeIndirectly(AsynchronousChannel channel, final CompletionHandler<V,? super A> handler, final A attachment, final V result, final Throwable exc) argument 230 invokeIndirectly(final CompletionHandler<V,? super A> handler, final A attachment, final V value, final Throwable exc, Executor executor) argument [all...] |
H A D | PendingFuture.java | 34 * attachment of an additional arbitrary context object and a timer task. 43 private final A attachment; field in class:PendingFuture 61 A attachment, 66 this.attachment = attachment; 72 A attachment) 76 this.attachment = attachment; 95 A attachment() { method in class:PendingFuture 96 return attachment; 59 PendingFuture(AsynchronousChannel channel, CompletionHandler<V,? super A> handler, A attachment, Object context) argument 70 PendingFuture(AsynchronousChannel channel, CompletionHandler<V,? super A> handler, A attachment) argument [all...] |
H A D | SelectorImpl.java | 125 Object attachment) 130 k.attach(attachment); 123 register(AbstractSelectableChannel ch, int ops, Object attachment) argument
|
H A D | SimpleAsynchronousFileChannelImpl.java | 176 final A attachment, 190 Invoker.invokeIndirectly(handler, attachment, null, exc, executor); 225 Invoker.invokeUnchecked(handler, attachment, fli, exc); 290 final A attachment, 305 Invoker.invokeIndirectly(handler, attachment, 0, exc, executor); 335 Invoker.invokeUnchecked(handler, attachment, n, exc); 346 final A attachment, 359 Invoker.invokeIndirectly(handler, attachment, 0, exc, executor); 389 Invoker.invokeUnchecked(handler, attachment, n, exc); 173 implLock(final long position, final long size, final boolean shared, final A attachment, final CompletionHandler<FileLock,? super A> handler) argument 288 implRead(final ByteBuffer dst, final long position, final A attachment, final CompletionHandler<Integer,? super A> handler) argument 344 implWrite(final ByteBuffer src, final long position, final A attachment, final CompletionHandler<Integer,? super A> handler) argument
|
H A D | UnixAsynchronousSocketChannelImpl.java | 317 A attachment, 325 Invoker.invoke(this, handler, attachment, null, e); 365 this.connectAttachment = attachment; 392 Invoker.invoke(this, handler, attachment, null, e); 505 A attachment, 554 this.readAttachment = attachment; 582 Invoker.invokeDirect(myGroupAndInvokeCount, handler, attachment, (V)result, exc); 584 Invoker.invokeIndirectly(this, handler, attachment, (V)result, exc); 700 A attachment, 737 this.writeAttachment = attachment; 316 implConnect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler) argument 500 implRead(boolean isScatteringRead, ByteBuffer dst, ByteBuffer[] dsts, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument 695 implWrite(boolean isGatheringWrite, ByteBuffer src, ByteBuffer[] srcs, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument [all...] |
/libcore/ojluni/src/main/java/java/nio/ |
H A D | DirectByteBuffer.java | 148 public final Object attachment() { method in class:DirectByteBuffer
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | AsynchronousByteChannel.java | 91 * The type of the attachment 94 * @param attachment 109 A attachment, 172 * The type of the attachment 175 * @param attachment 188 A attachment, 108 read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler) argument 187 write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler) argument
|
H A D | AsynchronousFileChannel.java | 429 * The type of the attachment 441 * @param attachment 460 A attachment, 479 * The type of the attachment 480 * @param attachment 491 public final <A> void lock(A attachment, argument 494 lock(0L, Long.MAX_VALUE, false, attachment, handler); 660 * The type of the attachment 666 * @param attachment 678 A attachment, 457 lock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument 676 read(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument 742 write(ByteBuffer src, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument [all...] |
H A D | AsynchronousServerSocketChannel.java | 272 * The type of the attachment 273 * @param attachment 285 public abstract <A> void accept(A attachment, argument
|
H A D | AsynchronousSocketChannel.java | 300 * The type of the attachment 303 * @param attachment 325 A attachment, 380 * The type of the attachment 387 * @param attachment 404 A attachment, 417 A attachment, 420 read(dst, 0L, TimeUnit.MILLISECONDS, attachment, handler); 478 * The type of the attachment 492 * @param attachment 324 connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler) argument 401 read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) argument 416 read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler) argument 509 read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument 558 write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) argument 572 write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler) argument 660 write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument [all...] |
H A D | CompletionHandler.java | 52 * @param attachment 55 void completed(V result, A attachment); argument 62 * @param attachment 65 void failed(Throwable exc, A attachment); argument
|
H A D | SelectionKey.java | 87 * <i>attachment</i> of a single arbitrary object to a key. An object can be 89 * the {@link #attachment() attachment} method. 366 private volatile Object attachment = null; field in class:SelectionKey 370 SelectionKey.class, Object.class, "attachment" 376 * <p> An attached object may later be retrieved via the {@link #attachment() 377 * attachment} method. Only one object may be attached at a time; invoking 378 * this method causes any previous attachment to be discarded. The current 379 * attachment may be discarded by attaching <tt>null</tt>. </p> 392 * Retrieves the current attachment 397 public final Object attachment() { method in class:SelectionKey [all...] |
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | AsynchronousFileChannelTest.java | 253 public String attachment; field in class:AsynchronousFileChannelTest.RecordingHandler 260 public void completed(Integer result, String attachment) { argument 262 this.attachment = attachment; 268 public void failed(Throwable exc, String attachment) { argument 270 this.attachment = attachment; 288 String attachment = "ATTACHMENT"; 292 afc.read(buf, 0, attachment, handler); 301 afc.read(buf, 0, attachment, handle [all...] |
H A D | FutureLikeCompletionHandler.java | 26 Object attachment; field in class:FutureLikeCompletionHandler 28 public void completed(V result, Object attachment) { argument 35 this.attachment = attachment; 40 public void failed(Throwable exc, Object attachment) { argument 47 this.attachment = attachment; 66 return attachment;
|